From b0e08877303ff7da4e90f9f4bbcea7b17e36e649 Mon Sep 17 00:00:00 2001 From: Lukas Pietzschmann Date: Thu, 8 Dec 2022 15:59:10 +0100 Subject: [PATCH] Treat frames generated by \againframe as "real" frames --- use_me.tex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/use_me.tex b/use_me.tex index 55c27a9..de6a78e 100644 --- a/use_me.tex +++ b/use_me.tex @@ -88,13 +88,20 @@ \counterwithin*{framesinsection}{section} \counterwithin*{framesinsubsection}{subsection} -\BeforeBeginEnvironment{frame}{ +\newcommand{\stepframe}{ \ifbeamer@noframenumbering\else% \stepcounter{framesinsection} \stepcounter{framesinsubsection} \fi% } +\BeforeBeginEnvironment{frame}{ + \stepframe +} +\pretocmd{\againframe}{ + \stepframe +}{}{} + \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}}