aboutsummaryrefslogtreecommitdiff
path: root/exercisesheets.sty
diff options
context:
space:
mode:
Diffstat (limited to 'exercisesheets.sty')
-rw-r--r--exercisesheets.sty16
1 files changed, 9 insertions, 7 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index 159cf43..f19228d 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -600,6 +600,7 @@
\exsh@subexpoints{#1}%
}
\newcommand{\points}[2][]{%
+ \exshset{points=#2}%
\bgroup
\exshset{#1}%
\ifthenelse{\equal{}{\pgfkeysvalueof{/exsh/pointsinfo}}}{%
@@ -608,10 +609,8 @@
\def\exsh@tmp{, \pgfkeysvalueof{/exsh/pointsinfo}}%
}%
\ifthenelse{\equal{#2}{oral}}{%
- \exshset{oral}%
\exsh@subexpoints{\pgfkeysvalueof{/exsh/strings/oral}\exsh@tmp}%
}{%
- \exshset{points=#2}%
\ifthenelse{\equal{#2}{}}{%
\exsh@subexpoints{\pgfkeysvalueof{/exsh/pointsinfo}}%
}{%
@@ -639,9 +638,12 @@
}
\newcommand{\ifsolutions}[2]{%
- \ifthenelse{\equal{oral}{\pgfkeysvalueof{/exsh/points}}}{%
- \ifbool{exsh@oralsolutions}{#1}{#2}%
- }{%
- \ifbool{exsh@nonoralsolutions}{#1}{#2}%
- }%
+ \ifbool{exsh@solutions}{#1}{#2}%
+}
+
+\newcommand{\iforalsolutions}[2]{%
+ \ifbool{exsh@oralsolutions}{#1}{#2}%
+}
+\newcommand{\ifnonoralsolutions}[2]{%
+ \ifbool{exsh@nonoralsolutions}{#1}{#2}%
}