aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kuhnert2008-10-28 12:44:27 +0000
committerSebastian Kuhnert2008-10-28 12:44:27 +0000
commitd8fbb89110a24fe475db568dd07f7ae003cacca5 (patch)
tree51878c330f3af4674de72edfd914622f1e311e84
parentf92973ad3dd28cec57d57a377c1ded43473462fb (diff)
downloadexercisesheets-d8fbb89110a24fe475db568dd07f7ae003cacca5.tar.gz
exercisesheets-d8fbb89110a24fe475db568dd07f7ae003cacca5.tar.bz2
exercisesheets-d8fbb89110a24fe475db568dd07f7ae003cacca5.zip
exercisesheets.sty: slight improvements to \TODO and documentation
-rw-r--r--exercisesheets.sty17
-rw-r--r--exercisesheets.tex10
2 files changed, 13 insertions, 14 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}
diff --git a/exercisesheets.tex b/exercisesheets.tex
index 01d5c3b..f81e47b 100644
--- a/exercisesheets.tex
+++ b/exercisesheets.tex
@@ -35,7 +35,7 @@
\title{The \exsh Package}
\author{Sebastian Kuhnert}
-\date{October 23rd, 2008}
+\date{October 28th, 2008}
\begin{document}
\maketitle
@@ -167,7 +167,9 @@ The following \param{options} are supported:
information is included in the sheet header. By default, this information is
omitted. See also the \option{semester} option.
\item[\option{note=\param{note}}] Include \param{note} in the sheet header.
- Useful to inform students when the sheet is due.
+ Useful to inform students when the sheet is due. If you want a note consisting
+ of more than one line split at a particular position, use
+ \verb|\protect\linebreak|.
\item[\option{title=\param{title}}] Deviate from the usual numbering theme and
directly set the sheet title. When this option is used, exercise numbers are
reset and different page numbering conventions are used. This is useful to
@@ -233,8 +235,8 @@ starts a new paragraph, the second one puts the hint in parenthesis.
\subsection{TODO Markers}
You can use the following to include a red TODO marker in your document. This is
-useful to mark places where work is still in progress. If no solutions are
-included, an error is issued, otherwise it is just a warning.
+useful to mark places where work is still in progress. A warning is issued at
+each place.
\begin{lstlisting}
\TODO