aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-01-29 17:48:41 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-01-29 17:48:41 +0100
commit34bd8d383e12cda427cfd1cdd7945630f5cbef94 (patch)
tree7d25ac8e485e5f59a049e97b791c98c1ba7c8b69
parentd703762ff0aa96af0854b7db6b58976ea3b3cf24 (diff)
downloadunterricht-34bd8d383e12cda427cfd1cdd7945630f5cbef94.tar.gz
unterricht-34bd8d383e12cda427cfd1cdd7945630f5cbef94.zip
make the width of the be table columns variable
-rw-r--r--latex/common.tex10
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}
}