diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-12-15 17:09:25 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-12-15 17:09:25 +0100 |
| commit | cecb3939e8c700dc115e86bc20f12e602f4e4c91 (patch) | |
| tree | bcef987993de8cacc53180a984ad8969fe2c5e4b /latex | |
| parent | ca95d35f24054bdb101bc7d02f4d3f4002c6f0c1 (diff) | |
| download | unterricht-cecb3939e8c700dc115e86bc20f12e602f4e4c91.tar.gz unterricht-cecb3939e8c700dc115e86bc20f12e602f4e4c91.zip | |
allow building with other engines than lualatex
Diffstat (limited to 'latex')
| -rw-r--r-- | latex/common.tex | 9 | ||||
| -rw-r--r-- | latex/common_packages.tex | 5 |
2 files changed, 11 insertions, 3 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 diff --git a/latex/common_packages.tex b/latex/common_packages.tex index 5d52e64c..c789ddc3 100644 --- a/latex/common_packages.tex +++ b/latex/common_packages.tex @@ -16,7 +16,10 @@ \RequirePackage{comment} \RequirePackage[ngerman]{babel} \RequirePackage{setspace} -\RequirePackage{lua-ul} +\RequirePackage{iftex} +\ifluatex + \RequirePackage{lua-ul} +\fi \RequirePackage{ulem} \RequirePackage{array} \RequirePackage{tabularx} |
