Is there a compact way of referencing the last slide (build stage) in beamer's overlay specification? I'm looking for something similar to <.>
(which references the current slide) or <+>
(which generates a new slide at the current location).
To be more specific, consider the following MWE. It creates a list where each item appears on a new slide. And then, at the end, I want to highlight the text "B".
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item A
\item \alert<4>{B}
\item C
\end{itemize}
\end{frame}
\end{document}
This does what I intend, but if I now add another item
\item D
and still want the highlight to appear once the list is completed, then I have to manually change the number in <4>
. This can be a bit cumbersome when the frame contains a lot of slides... it would be much more elegant if there way, say, a way to specify the slide by counting from the end as well, but I couldn't find anything of the sort in the manual. I could then simply append a \pause
at the end of my code, and replace the second item with something like
\item \alert<n1>{B}
where "n1" refers to "negative 1" to avoid confusion with "-1" (all slides until 1). Does something like that exist?