diff options
Diffstat (limited to 'macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty')
-rw-r--r-- | macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty index 4209fa9c14..1b1bbde374 100644 --- a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty +++ b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty @@ -10,7 +10,7 @@ % \NeedsTeXFormat{LaTeX2e}[1996/12/26] -\ProvidesPackage{srdp-mathematik}[2022/03/04 v1.9.5 Standard-Schularbeitsformate] +\ProvidesPackage{srdp-mathematik}[2022/04/05 v1.9.6 Standard-Schularbeitsformate] \usepackage{color} @@ -129,6 +129,18 @@ }}}}}}}}} +\ExplSyntaxOn +\NewDocumentCommand{\stringprocess}{ m m } +{\egreg_string_process:nn{#1}{#2}} +\cs_new_protected:Npn \egreg_string_process:nn#1#2 +{\tl_map_inline:nn{#2}{#1{##1}}} +\ExplSyntaxOff + +\newcommand{\boxchar}[2]{\strut#2#1} +\newcommand{\stretchstring}[2][\ \ ]{\stringprocess{\boxchar{#1}}{#2}} + + + \newcommand{\antwort}[2][]{\ifthenelse{\theAntworten=1}{{\color[rgb]{1,0,0}#2}}{#1}} \newcommand{\info}[2][]{\ifthenelse{\theinfo=1}{ @@ -141,9 +153,10 @@ \ifthenelse{\theAntworten=1}{\switchon}{} + \def\antwortzeile #1\\{% \ifswitch% -{\color[rgb]{1,0,0}#1}\\ +\color[rgb]{1,0,0}#1\\ \fi% } |