diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-04 21:59:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-04 21:59:54 +0000 |
commit | 9ed7f8da344dcde469b4f9671d4809947ca2baf4 (patch) | |
tree | 4e75385e05d3ddb27e1d31ff8db9a1228f9c9f68 /Master/texmf-dist/tex/latex/srdp-mathematik | |
parent | 815c00b5e712bcf5f934687398f6284cd5f9fc97 (diff) |
srdp-mathematik (4mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62418 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/srdp-mathematik')
-rw-r--r-- | Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty b/Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty index b0b716daa8f..4209fa9c146 100644 --- a/Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty +++ b/Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty @@ -10,7 +10,7 @@ % \NeedsTeXFormat{LaTeX2e}[1996/12/26] -\ProvidesPackage{srdp-mathematik}[2022/01/02 v1.9.4 Standard-Schularbeitsformate] +\ProvidesPackage{srdp-mathematik}[2022/03/04 v1.9.5 Standard-Schularbeitsformate] \usepackage{color} @@ -115,13 +115,37 @@ \ProcessOptions\relax + +\NewDocumentCommand{\variation}{ m m O{#1} O{#2} O{#1} O{#2} O{#1} O{#2} O{#1}}{% +\ifthenelse{\theZufall=0}{#1}{% +\ifthenelse{\theZufall=1}{#2}{% +\ifthenelse{\theZufall=2}{#3}{% +\ifthenelse{\theZufall=3}{#4}{% +\ifthenelse{\theZufall=4}{#5}{% +\ifthenelse{\theZufall=5}{#6}{% +\ifthenelse{\theZufall=6}{#7}{% +\ifthenelse{\theZufall=7}{#8}{% +\ifthenelse{\theZufall=8}{#9}{#1}% +}}}}}}}}} + + \newcommand{\antwort}[2][]{\ifthenelse{\theAntworten=1}{{\color[rgb]{1,0,0}#2}}{#1}} \newcommand{\info}[2][]{\ifthenelse{\theinfo=1}{ {\color[rgb]{0,0,1}#2} }{#1}} +\newif\ifswitch +\let\switchon\switchtrue +\let\switchoff\switchfalse +\ifthenelse{\theAntworten=1}{\switchon}{} + +\def\antwortzeile #1\\{% +\ifswitch% +{\color[rgb]{1,0,0}#1}\\ +\fi% +} \newcounter{A1} \newcounter{A2} |