Improved section and subsection frame counting

This commit is contained in:
Lukas Pietzschmann
2022-12-08 18:05:36 +01:00
parent b0e0887730
commit 4f9fe1f062

View File

@@ -89,9 +89,20 @@
\counterwithin*{framesinsubsection}{subsection}
\newcommand{\stepframe}{
\ifbeamer@noframenumbering\else%
\ifbeamer@isfragile
\stepcounter{framesinsection}
\stepcounter{framesinsubsection}
\else%
\ifbeamer@noframenumbering\else%
\stepcounter{framesinsection}
\stepcounter{framesinsubsection}
\fi%
\fi%
\ifnum\theframesinsection=0
\setcounter{framesinsection}{1}
\fi%
\ifnum\theframesinsubsection=0
\setcounter{framesinsubsection}{1}
\fi%
}