I have a beamer presentation where I do something like in the following MWE:
\documentclass[handout]{beamer}
\include{tikz}% To get \foreach
\begin{document}
\begin{frame}
These I want to uncover one by one in presentation mode, but to appear
as a single slide in the handout
\begin{itemize}[<+->]
\item Item 1
\item Item 2
\item Item 3
\item Item 4
\end{itemize}
\end{frame}
\def\slideContent{
These I want to uncover one by one in presentation mode *and* do the same
in the handout. But that's not what I get!
\begin{itemize}[<+->]
\item Item 1
\item Item 2
\item Item 3
\item Item 4
\end{itemize}
}
\foreach \i in {1, ..., 4} {
\begin{frame}<\i>
\slideContent
\end{frame}
}
\end{document}
The first frame is generated as expected in handout mode, but the last 4 frames are not since handout collapses all effects onto a single slide. And that's not what I want. Instead, I want those last 4 slides to appear exactly as they do in presentation mode. I know this can somehow be achieved by explicitly adding handout:0
to suppress effects from the handout, but I have some really complicated figures where it's just not maintainable to go in and do this for each and every single overlay. Note that this is not about excluding certain slides, because then I would have just added handout:0
to those slides, but here it's more about limiting the effects seen at handout to a certain number of transitions.
So, in a nutshell, how can I get handout mode to behave exactly as the presentation mode for certain slides?
Best Answer
A workaround on your problem is to temporarily change from handout to beamer mode while compiling. This way you can select a subset of slides, exactly as they are compiled in presentation mode. The trick is to change the internal variable
\beamer@currentmode
that Beamer uses (I don't know if messing with this can break any thing). I created a new environment to encapsulate this change for my slides, so I hope it can be useful.What you have to do is:
\begin{handoutframeselect}[2,4-5]
, changing the specification to whatever you need\begin{frame}<\slideselection>
The macro
\slideselection
will select the whole set of slides when in presentation mode, but only you specification when in handout mode. Check the example: