aboutsummaryrefslogtreecommitdiff
path: root/exercisesheets.sty
diff options
context:
space:
mode:
Diffstat (limited to 'exercisesheets.sty')
-rw-r--r--exercisesheets.sty17
1 files changed, 7 insertions, 10 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index 0ec5775..99161a3 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -1,8 +1,7 @@
-\def\fileversion{0.5a}
-\def\filedate{2008/10/23}
+\def\fileversion{0.5b}
+\def\filedate{2008/10/28}
% TODO: allow \and in author and solutionsby
-% TODO: allow \\ in note
%\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{exercisesheets}[\filedate\space\fileversion\space Typesetting of exercise sheets]
@@ -395,7 +394,7 @@
}{%
\begingroup
\pgfkeysvalueof{/exsh/sheet note font}%
- \vskip\pgfkeysvalueof{/exsh/above sheet note skip}\relax
+ \vskip\pgfkeysvalueof{/exsh/above sheet note skip}\relax
\pgfkeysvalueof{/exsh/note}\\\unskip%
\endgroup
}%
@@ -512,14 +511,12 @@
\newcommand{\pun}[1][]{\space\hspace*{\fill}{\pgfkeysvalueof{/exsh/points font}\mbox{(#1)}}}
\newcommand{\TODO}{%
- {\pgfkeysvalueof{/exsh/todo marker font}TODO}%
- \ifexsh@solutions
- \PackageWarning{exercisesheets}%
- {TODO marker found}%
+ \ifmmode
+ ${\pgfkeysvalueof{/exsh/todo marker font}TODO}$%
\else
- \PackageError{exercisesheets}%
- {TODO marker found}%
+ {\pgfkeysvalueof{/exsh/todo marker font}TODO}%
\fi
+ \PackageWarning{exercisesheets}{TODO marker found}%
}
\newcommand{\ifsolutions}[2]{\ifexsh@solutions #1\else #2\fi}