diff options
author | Norbert Preining <norbert@preining.info> | 2022-04-06 03:01:01 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-04-06 03:01:01 +0000 |
commit | 333540a9182285f9d72d7d39be3fa730c135d664 (patch) | |
tree | bdffc5aea11535dc73e81752b4a77eed105989ff /macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty | |
parent | a4e931576165d0a4a143915f4725399272e06fee (diff) |
CTAN sync 202204060301
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% } |