The beamer
theme metropolis
includes an option to show frame numbers as a fraction of total frames. But it does not add a vertical strut for the eventuality that someone (me!!) would add additional text to the frame footer
template. When comparing the numbered slides in the main document and the unnumbered in the appendix, then this causes the additional text to jump annoyingly. The jump is even more pronounced when I build the MWE with pdfLaTeX instead of with XeLaTeX as in the screenshot.
How would I go about to add the needed vertical strut to prevent the jumping? I know that I could add \setbeamertemplate{frame numbering}{\vphantom{/}}
after \appendix
, but I would really prefer to include the fix in the preamble rather than adding things in the document
environment.
\documentclass{beamer}
\usetheme{metropolis}
\metroset{numbering=fraction}
\begin{document}
{
\setbeamertemplate{frame footer}{Some random text}
\begin{frame}[label=slide1]{Slide 1}
\end{frame}
}
\appendix
{
\setbeamertemplate{frame footer}{Some random text}
\begin{frame}[label=slide2]{Slide 2}
\end{frame}
}
\end{document}