aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kuhnert2009-11-25 16:14:40 +0000
committerSebastian Kuhnert2009-11-25 16:14:40 +0000
commit3e740e37fd6d69f13faf19ee2efacd1d585fe16d (patch)
treebb09a1770895fbf8ea2aa6a1d7af59acfddde436
parente2f4885c63150fdd25ff57d87430fd531e3db5df (diff)
downloadexercisesheets-3e740e37fd6d69f13faf19ee2efacd1d585fe16d.tar.gz
exercisesheets-3e740e37fd6d69f13faf19ee2efacd1d585fe16d.tar.bz2
exercisesheets-3e740e37fd6d69f13faf19ee2efacd1d585fe16d.zip
add support for exercisemarks and difficult exercises
-rw-r--r--exercisesheets.sty3
-rw-r--r--exercisesheets.tex5
2 files changed, 7 insertions, 1 deletions
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}