Improved section and subsection frame counting
This commit is contained in:
13
use_me.tex
13
use_me.tex
@@ -89,9 +89,20 @@
|
|||||||
\counterwithin*{framesinsubsection}{subsection}
|
\counterwithin*{framesinsubsection}{subsection}
|
||||||
|
|
||||||
\newcommand{\stepframe}{
|
\newcommand{\stepframe}{
|
||||||
\ifbeamer@noframenumbering\else%
|
\ifbeamer@isfragile
|
||||||
\stepcounter{framesinsection}
|
\stepcounter{framesinsection}
|
||||||
\stepcounter{framesinsubsection}
|
\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%
|
\fi%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user