aboutsummaryrefslogtreecommitdiff
path: root/latex/common.tex
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-12-15 17:09:25 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-12-15 17:09:25 +0100
commitcecb3939e8c700dc115e86bc20f12e602f4e4c91 (patch)
treebcef987993de8cacc53180a984ad8969fe2c5e4b /latex/common.tex
parentca95d35f24054bdb101bc7d02f4d3f4002c6f0c1 (diff)
downloadunterricht-cecb3939e8c700dc115e86bc20f12e602f4e4c91.tar.gz
unterricht-cecb3939e8c700dc115e86bc20f12e602f4e4c91.zip
allow building with other engines than lualatex
Diffstat (limited to 'latex/common.tex')
-rw-r--r--latex/common.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/latex/common.tex b/latex/common.tex
index 36e7e22d..e6d06d1e 100644
--- a/latex/common.tex
+++ b/latex/common.tex
@@ -23,8 +23,13 @@
\newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\textcolor{white}{#1}}}
\newcommand{\psolution}[1]{\iftoggle{lehrerversion}{#1}{\phantom{#1}}}
-\newcommand{\gap}[1]{\underLine{\solution{#1}}}
-\newcommand{\pgap}[1]{\underLine{\psolution{#1}}}
+\ifluatex
+ \newcommand{\gap}[1]{\underLine{\solution{#1}}}
+ \newcommand{\pgap}[1]{\underLine{\psolution{#1}}}
+\else
+ \newcommand{\gap}[1]{\uline{\solution{#1}}}
+ \newcommand{\pgap}[1]{\uline{\psolution{#1}}}
+\fi
\newcommand{\beTabelle}{%
\centering