aboutsummaryrefslogtreecommitdiff
path: root/exercisesheets.sty
diff options
context:
space:
mode:
authorSebastian Kuhnert2009-10-23 08:33:28 +0000
committerSebastian Kuhnert2009-10-23 08:33:28 +0000
commit816f7d93d5e2670885766e699f77e91f03ceb844 (patch)
treeb0b9498ec10324f975900790d7768bd5c18497ca /exercisesheets.sty
parent7b299cb87dfb293aecd1963232f822d7aeb2c5b5 (diff)
downloadexercisesheets-816f7d93d5e2670885766e699f77e91f03ceb844.tar.gz
exercisesheets-816f7d93d5e2670885766e699f77e91f03ceb844.tar.bz2
exercisesheets-816f7d93d5e2670885766e699f77e91f03ceb844.zip
make assignments in the optional argument of \points local
Diffstat (limited to 'exercisesheets.sty')
-rw-r--r--exercisesheets.sty4
1 files changed, 3 insertions, 1 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index 22d2488..159cf43 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -600,7 +600,8 @@
\exsh@subexpoints{#1}%
}
\newcommand{\points}[2][]{%
- \exshset{pointsinfo={},#1}%
+ \bgroup
+ \exshset{#1}%
\ifthenelse{\equal{}{\pgfkeysvalueof{/exsh/pointsinfo}}}{%
\def\exsh@tmp{}%
}{%
@@ -621,6 +622,7 @@
}%
}%
}%
+ \egroup
}
\newcommand{\exsh@subexpoints}[1]{%
\unskip\nobreak\space\nobreak\hspace*{\fill}\allowbreak\hspace*{\fill}%