Skip to content
Snippets Groups Projects
Commit 17281d8b authored by Thorsten Wißmann's avatar Thorsten Wißmann :guitar:
Browse files

initial

parents
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
SOURCE = $(shell ls *.tex)
RM = rm
.PHONY: all clean print
all: $(SOURCE:.tex=.pdf)
%.pdf: %.tex
pdflatex -interaction nonstopmode $<
clean:
$(RM) -f *.log *.aux *.pdf *.o *.tex.include
print:
@echo '==>' all targets:
@echo $(SOURCE:.tex=.pdf)|tr ' ' '\n'
\documentclass[a4,landscape,12pt]{scrartcl}
\usepackage{ngerman}
\usepackage[utf8]{inputenc}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{stmaryrd} % für \lightning
\usepackage{float}
\usepackage{units} % für \nicefrac
\usepackage{amssymb}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{arrows}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Sp}{\text{Sp}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\M}{\mathfrak{M}}
\renewcommand{\Re}{\operatorname{Re}}
\renewcommand{\Im}{\operatorname{Im}}
\newcommand{\diff}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\dx}{\text{d}x}
\newcommand{\dz}{\text{d}z}
\newcommand{\dt}{\text{d}t}
\newcommand{\TODO}{{\color{red}{TODO}}}
\newcommand{\intab}{\int_a^b}
\renewcommand{\theequation}{\Roman{equation}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
\renewcommand{\labelenumi}{\roman{enumi})}
\begin{document}
% more math and tikz things at:
% http://tex.stackexchange.com/questions/12859/define-a-variable-in-tikz
\definecolor{myghg}{HTML}{4e9a06}
\definecolor{myrcds}{HTML}{204a87}
\definecolor{myblue}{HTML}{92dcec}
\begin{tikzpicture}
\pgfmathsetmacro{\curarc}{0}
\pgfmathsetmacro{\radius}{3}
\foreach \percent/\anchor/\name/\curcolor [remember=\curarc] in {
58.5/above/gemeinsam/myghg,
10.6/below/Janna/myblue,
12.8/below/Jule/myblue,
9.6/below/Marcus/myrcds,
8.5/right/Paul/red%
}
{
\pgfmathsetmacro{\lastarc}{\curarc}
\pgfmathsetmacro{\curarc}{\lastarc+3.6*\percent}
\pgfmathsetmacro{\middle}{0.5*\lastarc+0.5*\curarc}
\draw[color=red, very thick] (0,0) -- (\curarc:\radius cm);
\draw[fill=\curcolor, very thick] (0,0) -- (\curarc:\radius cm) arc
(\curarc:\lastarc:\radius cm)
node at (\middle:0.6*\radius) {\percent \%};
\draw (\middle:\radius) -- (\middle:0.5+\radius) node[\anchor] {\name};
};
\end{tikzpicture}
\end{document}
% vim: tw=80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment