From d8fbb89110a24fe475db568dd07f7ae003cacca5 Mon Sep 17 00:00:00 2001
From: Sebastian Kuhnert
Date: Tue, 28 Oct 2008 12:44:27 +0000
Subject: exercisesheets.sty: slight improvements to \TODO and documentation

---
 exercisesheets.sty | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

(limited to 'exercisesheets.sty')

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}
-- 
cgit v1.2.3

