From 6221eba486cf32c461fddfe1fe6c3a7d5d3a8ba6 Mon Sep 17 00:00:00 2001
From: Sebastian Kuhnert
Date: Fri, 25 Oct 2013 09:57:17 +0000
Subject: adaptations for enumitem

---
 exercisesheets.sty | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'exercisesheets.sty')

diff --git a/exercisesheets.sty b/exercisesheets.sty
index 1507e4b..730b53d 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -430,7 +430,11 @@
     \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
     \setcounter{\@enumctr}{0}%
   \fi
-  \@ifnextchar[{\@enumlabel@{\exsh@skipsheet}[}{\exsh@skipsheet}%
+  \ifx\@enumlabel@\relax
+    \exsh@skipsheet
+  \else
+    \@ifnextchar[{\@enumlabel@{\exsh@skipsheet}[}{\exsh@skipsheet}%
+  \fi
 }
 \def\exsh@skipsheet@label#1{%
   \label{#1}\exsh@skipsheet
@@ -555,7 +559,7 @@
 
 \AfterPackage*{varioref}{
   \labelformat{section}{\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}}
-  \labelformat{enumi}{\arabic{section}.#1}
+  \labelformat{enumi}{\arabic{section}.\alph{enumi}}
 }
 \AfterPackage*{paralist}{
   \setdefaultenum{(a)}{(1)}{i.}{A.}
-- 
cgit v1.2.3

