diff --git a/use_me.tex b/use_me.tex index 55c27a9..de6a78e 100644 --- a/use_me.tex +++ b/use_me.tex @@ -88,13 +88,20 @@ \counterwithin*{framesinsection}{section} \counterwithin*{framesinsubsection}{subsection} -\BeforeBeginEnvironment{frame}{ +\newcommand{\stepframe}{ \ifbeamer@noframenumbering\else% \stepcounter{framesinsection} \stepcounter{framesinsubsection} \fi% } +\BeforeBeginEnvironment{frame}{ + \stepframe +} +\pretocmd{\againframe}{ + \stepframe +}{}{} + \newcommand{\refreshcountsinaux}{ \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\theframesinsubsection}} \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\theframesinsection}}