aboutsummaryrefslogtreecommitdiff
path: root/latex/common.tex
diff options
context:
space:
mode:
Diffstat (limited to 'latex/common.tex')
-rw-r--r--latex/common.tex25
1 files changed, 15 insertions, 10 deletions
diff --git a/latex/common.tex b/latex/common.tex
index 80c910b1..a94942bf 100644
--- a/latex/common.tex
+++ b/latex/common.tex
@@ -31,18 +31,23 @@
\newcommand{\pgap}[1]{\uline{\psolution{#1}}}
\fi
+\newtoggle{betable}
+
\newcommand{\beTabelle}[1][3cm]{%
-\centering
-\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*#1,0) {\xi};
- \node [cell] at ([shift={(1,-1)}]\xi*#1,0) {\ref{a:\xi}};
- \node [cell] at ([shift={(1,-2)}]\xi*#1,0) {};
+\toggletrue{betable}
+\iftoggle{lehrerversion}{}{
+ \centering
+ \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*#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}
}
-\end{tikzpicture}
}
% Point distribution across subtasks