add command \election

This commit is contained in:
AntonObersteiner 2023-02-03 12:39:37 +01:00
parent 67decddb6d
commit 3bdc642e47

View file

@ -278,6 +278,25 @@
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}} \end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
} }
% election command - not an environment!
\newcommand{\election}[3] {%
\begin{lrbox}{\mybox}\begin{minipage}{.985\textwidth}
\ifthenelse{\isempty{#1}}{}{%
\textbf{#1. Wahlgang:}\\[7pt]
}
\begin{tabularx}{\linewidth}{p{.275\linewidth}|c|c|c|l}
\textbf{Kandidat\_in} & \textbf{Dafür} & \textbf{Dagegen} &
\textbf{Enthaltungen} & \textbf{Ergebnis} \\
\hline
#2
\end{tabularx}%
\ifthenelse{\isempty{#3}}{}{%
\\[7pt]
#3
}
\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}
}
\newcommand*{\away}[1] { \newcommand*{\away}[1] {
\ifthenelse{\the\numexpr \countInlineItems{#1} > 1} {% \ifthenelse{\the\numexpr \countInlineItems{#1} > 1} {%
\textit{[#1 verlassen die Sitzung]}% \textit{[#1 verlassen die Sitzung]}%