Treat frames generated by \againframe as "real" frames

This commit is contained in:
Lukas Pietzschmann
2022-12-08 15:59:10 +01:00
parent 7a62c638b3
commit b0e0887730

View File

@@ -88,13 +88,20 @@
\counterwithin*{framesinsection}{section} \counterwithin*{framesinsection}{section}
\counterwithin*{framesinsubsection}{subsection} \counterwithin*{framesinsubsection}{subsection}
\BeforeBeginEnvironment{frame}{ \newcommand{\stepframe}{
\ifbeamer@noframenumbering\else% \ifbeamer@noframenumbering\else%
\stepcounter{framesinsection} \stepcounter{framesinsection}
\stepcounter{framesinsubsection} \stepcounter{framesinsubsection}
\fi% \fi%
} }
\BeforeBeginEnvironment{frame}{
\stepframe
}
\pretocmd{\againframe}{
\stepframe
}{}{}
\newcommand{\refreshcountsinaux}{ \newcommand{\refreshcountsinaux}{
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\theframesinsubsection}} \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\theframesinsubsection}}
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\theframesinsection}} \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\theframesinsection}}