diff options
| -rw-r--r-- | latex/common_options.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/latex/common_options.tex b/latex/common_options.tex index b76dd419..a32368a8 100644 --- a/latex/common_options.tex +++ b/latex/common_options.tex @@ -7,6 +7,31 @@ \ProcessOptions\relax +\RequirePackage{xparse} + +\ExplSyntaxOn + +\NewDocumentCommand{\getenv}{om} + { + \sys_get_shell:nnN { kpsewhich ~ --var-value ~ #2 } { } \l_tmpa_tl + \tl_trim_spaces:N \l_tmpa_tl + \IfNoValueTF { #1 } + { + \tl_use:N \l_tmpa_tl + } + { + \tl_set_eq:NN #1 \l_tmpa_tl + } + } + +\ExplSyntaxOff + +\getenv[\lehrerversionEnv]{LESSON_LEHRERVERSION} + +\ifdefstring{\lehrerversionEnv}{true}{ + \toggletrue{lehrerversion}% +}{} + \iftoggle{debug}{ \RequirePackage{showframe} % Seitenlayout anzeigen }{} |
