diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-02-02 18:13:54 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-02-02 18:17:53 +0100 |
| commit | c13f5b077a4da047d193a7d318f49dd2b8dc5a7d (patch) | |
| tree | fa789a0262d9d475748014281440568b5b5aa4b0 /latex | |
| parent | f14d858b46f152653f35435d4e14b0947ffc9c10 (diff) | |
| download | unterricht-c13f5b077a4da047d193a7d318f49dd2b8dc5a7d.tar.gz unterricht-c13f5b077a4da047d193a7d318f49dd2b8dc5a7d.zip | |
add new shortcut to expand commands in the schueler version
Diffstat (limited to 'latex')
| -rw-r--r-- | latex/common.tex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/latex/common.tex b/latex/common.tex index ea9da0f9..f8786a2a 100644 --- a/latex/common.tex +++ b/latex/common.tex @@ -19,6 +19,8 @@ } \newcommand{\iflehrer}[2]{\iftoggle{lehrerversion}{#1}{#2}} +% Expands to its argument if the lehrerversion toggle is set +\newcommand{\ifschueler}[1]{\iftoggle{lehrerversion}{}{#1}} \newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\textcolor{white}{#1}}} \newcommand{\psolution}[1]{\iftoggle{lehrerversion}{#1}{\phantom{#1}}} @@ -35,7 +37,7 @@ \newcommand{\beTabelle}[1][3cm]{% \toggletrue{betable} -\iftoggle{lehrerversion}{}{ +\ifschueler{% \centering \begin{tikzpicture}[cell/.style={draw, minimum height=1cm, minimum width=#1}] \node [cell] at (1,0) {Aufgabe}; |
