summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-04 21:59:45 +0000
committerKarl Berry <karl@freefriends.org>2022-03-04 21:59:45 +0000
commit2af24efcc003674f1cb52ea3284357faf60540f1 (patch)
tree28f9978a10c808a961934e0a187aa7134b0a5c2f /Master/texmf-dist/tex
parent04529006ab21a0f6343327a55ad698d152b04b73 (diff)
srdp-mathematik (4mar22)
git-svn-id: svn://tug.org/texlive/trunk@62417 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty26
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}