diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-28 18:30:22 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-28 18:30:22 +0200 |
| commit | f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7 (patch) | |
| tree | cfabe3255b8d5b73589bc33098fb4fe439a903d5 /latex | |
| parent | afe36c251cf5f6a0deb1e3bf8588f7b153174811 (diff) | |
| download | unterricht-f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7.tar.gz unterricht-f2bf4afd9d32dfedacdfb6417e1e5edecfeca2e7.zip | |
add iflehrer command
Diffstat (limited to 'latex')
| -rw-r--r-- | latex/common.tex | 6 |
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}}} |
