I have a frame where I uncover a tikz-diagram in 12 slides.
In the next frame, I want to repeat a scaled-down version of the full diagram (slide 12).
I've tried to use a combination of \savebox, \usebox, \scalebox, but can't get the overlay specifications to work with saving and using boxes.
A trimmed-down example of what I'm trying to achieve is like this:
\documentclass{beamer}
\usepackage{tikz}
\usepackage{graphicx}
\begin{document}
\newsavebox{\mybox}
\savebox{\mybox}{
\begin{overprint}
\begin{tikzpicture}
\onslide<1->{\node (A) at (0, 0) {Spam};}
\onslide<2->{\node (S) at (1, 1) {Eggs};}
\end{tikzpicture}
\end{overprint}
}
\begin{frame}
\usebox{\mybox} % here, I want to show ALL slides in the frame
\end{frame}
\begin{frame}
\scalebox{2}{\usebox{\mybox}} % here, I want only the LAST slide in the frame
\end{frame}
\end{document}
This appears to store only the first slide of the frame into \mybox. However, I want to have all slides in the first \usebox and only the last slide in the second \usebox.
I've also tried compiling the first frame as usual and then something like \savebox{\mybox}{\againframe<2>{myframe}}, but this resulted in an error message Missing \endgroup inserted.. And anyway, I don't want to repeat the full frame, but only the tikzpicture.
So, my question:
- How do I repeat a scaled-down version of a specific overlay of a
tikzpicturefrom a previous frame?