From 3e740e37fd6d69f13faf19ee2efacd1d585fe16d Mon Sep 17 00:00:00 2001 From: Sebastian Kuhnert Date: Wed, 25 Nov 2009 16:14:40 +0000 Subject: add support for exercisemarks and difficult exercises --- exercisesheets.sty | 3 +++ exercisesheets.tex | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/exercisesheets.sty b/exercisesheets.sty index 7412949..0c9da03 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -88,6 +88,8 @@ /exsh/strings/point=\pgfkeysvalueof{/exsh/strings/bonus point}}, pointsinfo/.initial={}, optional/.style={/exsh/pointsinfo=\pgfkeysvalueof{/exsh/strings/optional}},optional/.value forbidden, + exercisemark/.initial={}, + difficult/.style={/exsh/exercisemark=*},difficult/.value forbidden, % % translatable strings strings/sheet/.initial={}, @@ -519,6 +521,7 @@ \refstepcounter{section}% \edef\exsh@tmp{[\pgfkeysvalueof{/exsh/strings/exercise} \arabic{section}\exsh@shortexname\exsh@shortpoints]}% \expandafter\exsh@startsection\exsh@tmp{\noindent% + \hbox to 0pt{\hss\pgfkeysvalueof{/exsh/exercisemark}}% \pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@exname\exsh@firstline\exsh@points}% \unskip\vskip\pgfkeysvalueof{/exsh/below exercise title skip}\relax \vskip-\parskip\relax diff --git a/exercisesheets.tex b/exercisesheets.tex index 9ebf550..256f7d7 100644 --- a/exercisesheets.tex +++ b/exercisesheets.tex @@ -212,7 +212,10 @@ supported: information to be displayed after the points. \item[\option{optional}] Shortcut for \option{pointsinfo=optional} with automatic translation. - \item[\option{solutions\opt{=\param{true/false}}}] Use this to override the + \item[\option{exercisemark=\param{symbol}}] Mark the exercise + with \param{symbol} in the left margin. + \item[\option{difficult}] Shortcut for \option{exercisemark=*}. + \item[\option{solutions\opt{=\param{true/false/oral/nonoral}}}] Use this to override the document (or sheet) default. \end{description} -- cgit v1.2.3