Improved how the little dots in the footer are produced
This commit is contained in:
24
use_me.tex
24
use_me.tex
@@ -77,21 +77,31 @@
|
||||
\usefolder{styles}
|
||||
\usetheme{Awesome}
|
||||
|
||||
\newcounter{pagenumber}
|
||||
\newcounter{framesinsection}
|
||||
\newcounter{framesinsubsection}
|
||||
\counterwithin*{framesinsection}{section}
|
||||
\counterwithin*{framesinsubsection}{subsection}
|
||||
|
||||
\BeforeBeginEnvironment{frame}{
|
||||
\stepcounter{pagenumber}
|
||||
\ifbeamer@noframenumbering\else%
|
||||
\stepcounter{framesinsection}
|
||||
\stepcounter{framesinsubsection}
|
||||
\fi%
|
||||
}
|
||||
|
||||
\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}}
|
||||
}
|
||||
|
||||
\counterwithin{framenumber}{subsection}
|
||||
\pretocmd{\section}{
|
||||
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}
|
||||
\refreshcountsinaux
|
||||
}{}{}
|
||||
\pretocmd{\subsection}{
|
||||
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\arabic{framenumber}}}
|
||||
\refreshcountsinaux
|
||||
}{}{}
|
||||
\AtEndDocument{
|
||||
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}
|
||||
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\arabic{framenumber}}}
|
||||
\refreshcountsinaux
|
||||
}
|
||||
\newcommand{\framespersection}{
|
||||
\ifcsdef{s@totalsectionframes-\arabic{section}}{
|
||||
|
||||
Reference in New Issue
Block a user