From 6e0929f389811001f77236d9980153bcde557e0c Mon Sep 17 00:00:00 2001
From: Sebastian Kuhnert
Date: Thu, 13 Nov 2008 11:41:32 +0000
Subject: improve format of named exercises in PDF outline

---
 exercisesheets.sty | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'exercisesheets.sty')

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

