Open kno10 opened 7 years ago
Sorry, but I cannot understand the issue here. As stated in the documentation in section 5.1 you should use the appendixnumberbeamer
package. If you do so, the progress bar and page numbering is automatically deactivated for backup slides.
I don't use that package, because I don't want the numbering to start with 0 again.
I do, however, call \appendix
. The progress bar disappears on the outer theme, but it remains on the sectionpage
slides, where it is most noticeable that they exceed 100%.
Ok. Can you put together a MWE?
I would also like the appendix frames to have numbers, too. I used to number them simply 26/25 etc. if the main part was 25 frames. Then people can still refer to them as "slide 26". Thus, I don't think metropolis should automatically turn of page numbering in the appendix.
\documentclass{beamer}
\usetheme{metropolis}
\begin{document}
\frame{Main}
% Store the real frame count.
\newcounter{framenumberBeforeAppendix}
\setcounter{framenumberBeforeAppendix}{\value{framenumber}}
% Actually I would like to have page numbers here, too.
\appendix
\frame{Appendix}
\frame{Appendix 2}
\section{Appendix: Progress bar is broken}
% Restore the real frame count.
\addtocounter{framenumberBeforeAppendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberBeforeAppendix}}
\end{document}
I use own macros \lastslide
and \restorepagecount
that do the frame number magic, but it is just 2 lines each, so I inlined them here for the MWE.
When e.g. stopping the "total" page count at the last slide, sections in backup slides (which then will have frame numbers like 20/15) will have their progress bar go beyond 100%.