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 +++
 1 file changed, 3 insertions(+)

(limited to 'exercisesheets.sty')

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

