From 3a2673fc9aac78663c05695b50b2be9c937d5a91 Mon Sep 17 00:00:00 2001
From: Frank Fuhlbrück
Date: Wed, 4 Nov 2020 11:27:04 +0100
Subject: exercisesheets-beamer: kleine Korrekturen

---
 exercisesheets-beamer.sty | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'exercisesheets-beamer.sty')

diff --git a/exercisesheets-beamer.sty b/exercisesheets-beamer.sty
index c236166..cbc46eb 100644
--- a/exercisesheets-beamer.sty
+++ b/exercisesheets-beamer.sty
@@ -723,6 +723,11 @@
   \setbeamercolor{block body}{bg=bg,fg=fg}
   \block{}{\pgfkeysvalueof{/exsh/exercise title font}{#2}}\endblock
   \endgroup
+  \setbeamertemplate{enumerate items}{\insertenumlabel}
+  \renewcommand{\insertenumlabel}{\alph{enumi})}
+%   \let\orig@endenumerate\endenumerate%
+%   \def{\endenumerate}{\orig@endenumerate\setcounter{enumi}{0}}%
+  \apptocmd{\endenumerate}{\setcounter{enumi}{0}}{}{}%
 }%
 
 \AfterPackage*{varioref}{
@@ -737,7 +742,6 @@
   \setenumerate[2]{label=(\arabic*)}
   \setenumerate[3]{label=\roman*.}
   \setenumerate[4]{label=\Alph.}
-  \setlist[enumerate,1]{label=(\alph*),after*=\setcounter{enumi}{0}}
 }
 \def\theHenumi{enumi.\arabic{part}.\arabic{section}.\arabic{enumi}}
 
-- 
cgit v1.2.3

