aboutsummaryrefslogtreecommitdiff
path: root/latex/common.tex
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-28 18:30:22 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-04-28 18:30:22 +0200
commitf2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7 (patch)
treecfabe3255b8d5b73589bc33098fb4fe439a903d5 /latex/common.tex
parentafe36c251cf5f6a0deb1e3bf8588f7b153174811 (diff)
downloadunterricht-f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7.tar.gz
unterricht-f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7.zip
add iflehrer command
Diffstat (limited to 'latex/common.tex')
-rw-r--r--latex/common.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/latex/common.tex b/latex/common.tex
index decebd24..aa910764 100644
--- a/latex/common.tex
+++ b/latex/common.tex
@@ -17,3 +17,9 @@
\foreach \n in {1,...,#2}\draw(0 ,-#1*\n )--(\linewidth,-#1*\n );
\end{tikzpicture}
}
+
+\newcommand{\iflehrer}[2]{\iftoggle{lehrerversion}{#1}{#2}}
+
+\newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\phantom{#1}}}
+
+\newcommand{\gap}[1]{\underline{\solution{#1}}}