From be1ce1d52289cd50b0dcfdbbdcbd226aa825cecc Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 4 Nov 2021 20:42:24 +0000
Subject: srdp-mathematik (4nov21)

git-svn-id: svn://tug.org/texlive/trunk@60951 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/srdp-mathematik/srdp-mathematik.sty  | 39 ++++++++++++----------
 1 file changed, 22 insertions(+), 17 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/srdp-mathematik/srdp-mathematik.sty')

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 09bf9fd8ab1..c4d5f03b182 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}[2021/03/29 v1.9.0 Standard-Schularbeitsformate]
+\ProvidesPackage{srdp-mathematik}[2021/11/04 v1.9.1 Standard-Schularbeitsformate]
 
 
 \usepackage{color}
@@ -30,7 +30,7 @@
 \usepackage{framed}
 \usepackage{array}
 \usepackage{tabularx}
-\usepackage{tabu}
+\usepackage{srdp-tables}
 \usepackage{environ}
 \usepackage{cancel}
 \usepackage{spreadtab}
@@ -173,20 +173,23 @@
 \makeatletter
 
 \NewEnviron{beispiel}[2][\unskip]{\begin{minipage}[t]{0.88\textwidth}
-\addtocounter{number}{1}
-\begin{enumerate}
-	\item[\thenumber.] \BODY
-\end{enumerate}
-
-
-\end{minipage} 
-\begin{minipage}[t]{0.1\textwidth} \raggedleft \small{\_\_\_/#2}\addtocounter{punkte}{#2}\\
-\antwort{\footnotesize #1 \normalsize}\end{minipage}
-\vspace{\baselineskip}
-
-}
+	\addtocounter{number}{1}
+	\begin{enumerate}
+		\item[\thenumber.] {\BODY}
+	\end{enumerate}
+	
+	
+	\end{minipage} 
+	\begin{minipage}[t]{0.1\textwidth} \raggedleft \small{\_\_\_/#2\addtocounter{punkte}{#2}\\\ifthenelse{\equal{#1}{\string 1/2}}
+		{$\left[{}^1{\mskip -5mu/\mskip -3mu}_2\right]$}
+		{\antwort{\footnotesize #1 \normalsize}}}
+	\end{minipage}
+	\vspace{\baselineskip}
+	
+	}
 
 
+\newcommand{\pkte}[2][]{\hfill[0\,/\,\ifthenelse{\equal{#1}{\string 1/2}}{${}^1{\mskip -5mu/\mskip -3mu}_2$\,/\,}{}#2]}
 
 %
 %
@@ -195,6 +198,7 @@
 %%%%%%%%%%%%% Teil 2 Überschrift %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 %
+
 \newcommand{\TEILZWEI}{\newpage \ifodd\value{page}\thispagestyle{empty}\hbox{}\newpage\else \fi
 \begin{flushright}
 \small Name: \rule{7cm}{0.4pt} \normalsize
@@ -247,7 +251,7 @@
 \renewcommand*{\item}{\setcounter{subitemcounter}{0}\itemalt}
 \subsubsection{Aufgabenstellung:}%
 \begin{enumerate}[a),leftmargin=0pt]
-\item \BODY
+\item {\BODY}
 \end{enumerate}%
 \let\item\itemalt}
 
@@ -255,7 +259,7 @@
 \renewcommand*{\item}{\setcounter{subitemcounter}{0}\itemalt}
 \antwort{%%
 \begin{enumerate}[a),leftmargin=0pt]
-\item \BODY
+\item {\BODY}
 \end{enumerate}}%
 \let\item\itemalt}
 
@@ -892,11 +896,12 @@ Complete the following sentence by putting a cross next to one of the given poss
 \newcommand\tfmultiplechoice[3][5]{ %Anzahl der Antwortmoeglichkeiten, Standard: 5
   \bgroup
   \jeroen@set@keys{#3}%%
-\setcounter{counter}{0}		
+\setcounter{counter}{0}\setcounter{acheck}{0}\setcounter{bcheck}{0}\setcounter{ccheck}{0}\setcounter{dcheck}{0}\setcounter{echeck}{0}\setcounter{fcheck}{0}\setcounter{gcheck}{0}\setcounter{hcheck}{0}\setcounter{icheck}{0}
 \centering 
 \tabulinesep=3mm
 \pgfmathsetseed{\theZufall}
 \declarenumlist{group}{1}{#1}
+\pgfmathrandomitem\z{group}\setcounter{antworta}{\z}\prunelist{group}
 \ifthenelse{\numexpr#1 > 1}{\pgfmathrandomitem\z{group}\setcounter{antwortb}{\z}\prunelist{group}}{}
 \ifthenelse{\numexpr#1 > 2}{\pgfmathrandomitem\z{group}\setcounter{antwortc}{\z}\prunelist{group}}{}
 \ifthenelse{\numexpr#1 > 3}{\pgfmathrandomitem\z{group}\setcounter{antwortd}{\z}\prunelist{group}}{}
-- 
cgit v1.2.3

