From f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 28 Apr 2023 18:30:22 +0200 Subject: add iflehrer command --- latex/common.tex | 6 ++++++ 1 file changed, 6 insertions(+) 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}}} -- cgit v1.2.3