aboutsummaryrefslogtreecommitdiff
path: root/exercisesheets.sty
diff options
context:
space:
mode:
authorSebastian Kuhnert2009-04-30 12:12:40 +0000
committerSebastian Kuhnert2009-04-30 12:12:40 +0000
commit676242329ec5f59a109c5d1e233b86aee3cae6a1 (patch)
treee643bd62a700ba661b8a5b10b35a6c69b6951f31 /exercisesheets.sty
parent4c133b9f183a3c0efb64621305301f307a648423 (diff)
downloadexercisesheets-676242329ec5f59a109c5d1e233b86aee3cae6a1.tar.gz
exercisesheets-676242329ec5f59a109c5d1e233b86aee3cae6a1.tar.bz2
exercisesheets-676242329ec5f59a109c5d1e233b86aee3cae6a1.zip
exercisesheets.sty: make exercise labels in .aux files fully expanded
Diffstat (limited to 'exercisesheets.sty')
-rw-r--r--exercisesheets.sty14
1 files changed, 9 insertions, 5 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index 138cf16..e075b6a 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -493,17 +493,21 @@
\edef\exsh@shortexname{:\space\pgfkeysvalueof{/exsh/name}}%
}%
\refstepcounter{section}%
- \@startsection{section}{1}{\z@}%
- {\pgfkeysvalueof{/exsh/above exercise skip}}%
- {1em}% afterskip corrected below
- {\pgfkeysvalueof{/exsh/exercise title font}}%
- [\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@shortexname\exsh@shortpoints]{\noindent%
+ \edef\exsh@tmp{[\pgfkeysvalueof{/exsh/strings/exercise} \arabic{section}\exsh@shortexname\exsh@shortpoints]}%
+ \expandafter\exsh@startsection\exsh@tmp{\noindent%
\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@exname\exsh@firstline\exsh@points}%
\unskip\vskip\pgfkeysvalueof{/exsh/below exercise title skip}\relax
\vskip-\parskip\relax
\@afterindentfalse
\ignorespaces
}{}
+\providecommand{\exsh@startsection}[2][]{%
+ \@startsection{section}{1}{\z@}%
+ {\pgfkeysvalueof{/exsh/above exercise skip}}%
+ {1em}% afterskip corrected below
+ {\pgfkeysvalueof{/exsh/exercise title font}}%
+ [#1]{#2}%
+}%
\AfterPackage*{varioref}{
\labelformat{section}{\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}}