diff options
| author | Sebastian Kuhnert | 2008-11-13 11:41:32 +0000 |
|---|---|---|
| committer | Sebastian Kuhnert | 2008-11-13 11:41:32 +0000 |
| commit | 6e0929f389811001f77236d9980153bcde557e0c (patch) | |
| tree | 643a24a3070e1a2df6238759456ac85580dca7c2 | |
| parent | ec8f3b0707fbd15c6221da2ba49d3f47921141ac (diff) | |
| download | exercisesheets-6e0929f389811001f77236d9980153bcde557e0c.tar.gz exercisesheets-6e0929f389811001f77236d9980153bcde557e0c.tar.bz2 exercisesheets-6e0929f389811001f77236d9980153bcde557e0c.zip | |
improve format of named exercises in PDF outline
| -rw-r--r-- | exercisesheets.sty | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index e1a54a3..325f00a 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -451,15 +451,17 @@ }% \ifthenelse{\equal{}{\pgfkeysvalueof{/exsh/name}}}{% \def\exsh@exname{}% + \def\exsh@shortexname{}% }{% \edef\exsh@exname{\space(\pgfkeysvalueof{/exsh/name})}% + \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@exname\exsh@shortpoints]{\noindent% + [\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@shortexname\exsh@shortpoints]{\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 |
