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

General improvements

parent db84f5cc
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@
\newcommand{\piechart}[1]{
\begin{tikzpicture}[scale=1.8]
\pgfmathsetmacro{\curarc}{0} % starting angle
\pgfmathsetmacro{\curarc}{180} % starting angle
\pgfmathsetmacro{\radius}{3}
\useasboundingbox (-\radius cm,+\radius cm) rectangle (+\radius cm,0);
\pgfmathsetmacro{\smallradius}{.7}
......@@ -71,11 +71,17 @@
#1}
{
\pgfmathsetmacro{\lastarc}{\curarc}
\pgfmathsetmacro{\curarc}{\lastarc+3.6*\percent/2}
\pgfmathsetmacro{\curarc}{\lastarc-3.6*\percent/2}
\pgfmathsetmacro{\startarc}{\lastarc}
\pgfmathsetmacro{\endarc}{\curarc}
\pgfmathsetmacro{\labelarc}{
(\percent < 9) ? (0.5*\startarc+0.5*\endarc) : 0.8}
(\percent < 9)
? (0.5*\startarc+0.5*\endarc)
: 0.8}
\pgfmathsetmacro{\labelarc}{
(\labelarc > 90)
? (\labelarc - 180)
: \labelarc}
\pgfmathsetmacro{\middle}{0.5*\startarc+0.5*\endarc}
\def\mypath{(\startarc:\smallradius cm)
arc (\startarc:\endarc:\smallradius cm)
......@@ -133,27 +139,33 @@
%\fbox{
\begin{minipage}[b][4.6cm][t]{8cm}
\begin{tikzpicture}[scale=1]
\coordinate (nextpos) at (0,0);
\foreach \name/\seats/\curcolor [count=\i] in {
#1}
{
\begin{scope}[shift={(0 cm,-.9*\i cm)}]
\draw[draw=none,fill=\curcolor] (0,0) rectangle node
% [draw=white,fill=\curcolor,%
% very thick,rounded corners,%
% inner sep=1ex]%
\node[draw=none,fill=\curcolor,
minimum width =7.5cm, minimum height = 8mm,
text width = 7.3cm,
align = center,
anchor=north,
]
(X) at (nextpos)
{%
\sf
\color{white}\name
} +(7.5cm,.8cm);
};
%\draw (0,0) node [left] {\phantom{4 sitze}};
\draw (7.5cm,.4cm) node [right] {
\node[anchor=west] (seatnumber) at (X.east) {
\sf
\seats%\ %
%\ifthenelse{\equal{\seats}{1}}{Sitz}{Sitze}
};
\end{scope}
};
\draw (8.2cm,-0.5cm) node [right] {\sf Sitze};
\ifthenelse{\equal{\i}{1}}{
\node[anchor=west] at (seatnumber.east) {
\sf Sitze
};
}{}
\coordinate (nextpos) at ([yshift=-1mm]X.south);
}
\end{tikzpicture}%
\end{minipage}
%}%
......@@ -263,7 +275,7 @@
26.67/4/deprecated/colphilly}
\\
\seatchart{
Free Philly/4/colphilly,
Die PhilFak-Wahlliste - Für mehr hat's nicht gereicht/4/colphilly,
Bunt-Links-Ökologisch-Demokratisch/11/colbgl}
\beteiligung{4.83}
}
......@@ -318,11 +330,11 @@ Thorsten Wißmann \texttt{<uni@thorsten-wissmann.de>}
(Turnstr. 7, Erlangen),
\today,
Wahlvorschläge wie auf Stimmzetteln geordnet,
Made with \LaTeX
mit \LaTeX erstellt.
\\
Quelle:
\url{https://www.fau.de/files/2015/01/Bekanntgabe-Ergebnis-Hochschulwahl-2015.pdf}
$\equiv$ \url{http://tinyurl.com/fau-wahlen-2015}
\url{https://www.fau.de/files/201?/??/Bekanntgabe-Ergebnis-Hochschulwahl-2016.pdf}
$\equiv$ \url{http://tinyurl.com/fau-wahlen-????}
\end{document}
......
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