From ac3d3bbcf3b312dd01e994a4fe4ba28642bd935e Mon Sep 17 00:00:00 2001
From: Frank Fuhlbrück
Date: Wed, 19 Oct 2022 12:45:59 +0200
Subject: small bugfix for \begin{enumerate}[<+->]

---
 exercisesheets.sty | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

(limited to 'exercisesheets.sty')

diff --git a/exercisesheets.sty b/exercisesheets.sty
index 1bd926c..5c08e28 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -18,8 +18,8 @@
 %\NeedsTeXFormat{LaTeX2e}[1994/12/01]
 
 % don't forget to update the version and date in exercisesheets.tex
-\def\exsh@version{0.12}
-\def\exsh@date{2022/09/02}
+\def\exsh@version{0.12.1}
+\def\exsh@date{2022/10/19}
 
 \ProvidesPackage{exercisesheets}[\exsh@date\space\exsh@version\space Typesetting of exercise sheets]
 \message{`Typesetting of exercise sheets' \exsh@version\space <\exsh@date>}
@@ -1192,6 +1192,13 @@
     \setenumerate[4]{label=\Alph.}
   }
   \def\theHenumi{enumi.\arabic{part}.\arabic{section}.\arabic{enumi}}
+%%%%%%%%%%%%%%% BEGIN BEAMER-SPECIFIC: %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\ifexsh@beamer 
+  % code below breaks [] argument after \begin{enumerate}
+  % when beamer is used
+  % in beamer we set item labels separately 
+  % see beamer specific def. of \exsh@startsection
+\else%--------- NON-BEAMER: ---------------------------------------
   \AtEndPreamble{%
     \@ifpackageloaded{paralist}{}{%
       \@ifpackageloaded{enumitem}{}{%
@@ -1206,6 +1213,8 @@
     }%
   }%
 \fi
+%%%%%%%%%%%%%%% END BEAMER-SPECIFIC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\fi
 
 \newcommand{\subexnref}[1]{\exsh@subexn{#1}}
 \newcommand{\subexlref}[1]{(\@alph{\exsh@subexn{#1}})}
-- 
cgit v1.2.3

