diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-02-02 12:07:06 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-02-02 12:07:06 +0100 |
| commit | 730f4262903243c5d6e26fb2fac920a6dec5a2d9 (patch) | |
| tree | adfdd0bf06e05c9302a4b2c09043288842b599f9 /latex/common.tex | |
| parent | c91c58e7ec6159320102ca129d255b5e1012fdd7 (diff) | |
| download | unterricht-730f4262903243c5d6e26fb2fac920a6dec5a2d9.tar.gz unterricht-730f4262903243c5d6e26fb2fac920a6dec5a2d9.zip | |
improve test with a BE overview table
Do not include the BE sum in the border if we have a Table.
Only set the table in the schueler version.
Diffstat (limited to 'latex/common.tex')
| -rw-r--r-- | latex/common.tex | 25 |
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 |
