In beamer, when \only
s used, how can I make the page numbers reflect them?
For example,
\documentclass{beamer}
\usetheme[sectionpage=none,progressbar=frametitle]{metropolis}
\begin{document}
\begin{frame}
\only<1>{
Slide 1--1
}
\only<2>{
Slide 1--2
}
\end{frame}
\begin{frame}
\only<1>{
Slide 2--1
}
\only<2>{
Slide 2--2
}
\end{frame}
\end{document}
I would like to have page numbers to be 1--1
, 1--2
, 2--1
, 2--2
on these 4 slides, respectively.
Another example:
\documentclass[12pt,aspectratio=169,usenames,dvipsnames]{beamer}
\usetheme[sectionpage=none,progressbar=frametitle]{metropolis}
\begin{document}
\begin{frame}
Slide 1
\end{frame}
\begin{frame}
\textcolor<2>{red}{\color<3,8>{blue} Hi}
\end{frame}
\begin{frame}
Slide 3
\end{frame}
\end{document}
Slides 1 and 3 should not show the post-dash part.
Best Answer
With an up-to-date beamer version, the code can be simplified to: