diff options
Diffstat (limited to 'exercisesheets.sty')
| -rw-r--r-- | exercisesheets.sty | 14 |
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}} |
