aboutsummaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-02-02 18:13:54 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-02-02 18:17:53 +0100
commitc13f5b077a4da047d193a7d318f49dd2b8dc5a7d (patch)
treefa789a0262d9d475748014281440568b5b5aa4b0 /latex
parentf14d858b46f152653f35435d4e14b0947ffc9c10 (diff)
downloadunterricht-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.tex4
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};