diff options
| -rw-r--r-- | latex/common.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/latex/common.tex b/latex/common.tex index f99d46c4..80c910b1 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -31,16 +31,16 @@ \newcommand{\pgap}[1]{\uline{\psolution{#1}}} \fi -\newcommand{\beTabelle}{% +\newcommand{\beTabelle}[1][3cm]{% \centering -\begin{tikzpicture}[cell/.style={draw, minimum height=1cm, minimum width=3cm}] +\begin{tikzpicture}[cell/.style={draw, minimum height=1cm, minimum width=#1}] \node [cell] at (1,0) {Aufgabe}; \node [cell] at (1,-1) {BEs}; \node [cell] at (1,-2) {}; \foreach \x [count=\xi] in {1,...,\theAufg}{% - \node [cell] at ([shift={(1,0)}]\xi*3cm,0) {\xi}; - \node [cell] at ([shift={(1,-1)}]\xi*3cm,0) {\ref{a:\xi}}; - \node [cell] at ([shift={(1,-2)}]\xi*3cm,0) {}; + \node [cell] at ([shift={(1,0)}]\xi*#1,0) {\xi}; + \node [cell] at ([shift={(1,-1)}]\xi*#1,0) {\ref{a:\xi}}; + \node [cell] at ([shift={(1,-2)}]\xi*#1,0) {}; } \end{tikzpicture} } |
