aboutsummaryrefslogtreecommitdiff
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
parentf14d858b46f152653f35435d4e14b0947ffc9c10 (diff)
downloadunterricht-c13f5b077a4da047d193a7d318f49dd2b8dc5a7d.tar.gz
unterricht-c13f5b077a4da047d193a7d318f49dd2b8dc5a7d.zip
add new shortcut to expand commands in the schueler version
-rw-r--r--latex/common.tex4
-rw-r--r--templates/test/_test.tex1
2 files changed, 4 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};
diff --git a/templates/test/_test.tex b/templates/test/_test.tex
index a2994584..cf4f9f3a 100644
--- a/templates/test/_test.tex
+++ b/templates/test/_test.tex
@@ -15,6 +15,7 @@
\end{Bearbeitung}
%% Beispiel Aufgabe mit karierter Bearbeitung
+\ifschueler{\newpage}
\input{Aufgaben/aufgabe2}
\begin{Bearbeitung}
\liniert[1cm]{5}