#StackBounty: #beamer #counters Total number of frames in subsubsection?

Bounty: 100

I would like to know if there is an easy way to get the total number of frames within a subsubsection in Beamer ?

I already managed to get the frame count in each subsubsection, as can be seen in the MWE.

documentclass{beamer}

newcounter{insub}
AtBeginSubsection[]{setcounter{insub}{0}}
AtBeginEnvironment{frame}{addtocounter{insub}{1}}
setbeamertemplate{frametitle}{subsecname{} -- theinsub of XYZ slides in current subsubsection}

begin{document}

section{A}
subsection{A.1}
subsection{First subsubsection}
begin{frame}{.}
    abc
    pause 
    cdef
end{frame} 

begin{frame}{.}
   How to automatically get XYZ?
end{frame}

subsection{Second subsubsection}
begin{frame}{.}
    abc
    pause 
    cdef
end{frame} 

begin{frame}{.}

end{frame}

begin{frame}{.}
   How to automatically get XYZ?
end{frame}

end{document}


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.