While preparing my lectures with beamer, I often find myself having to split a frame into two different ones. For instance, a first version of my slides contains:
\begin{frame}
\begin{block}{Theorem}
Blah, blah, blah
\end{block}
\begin{block}{Corollary}
Etc, etc, etc
\end{block}
\end{frame}
When I complete my slides and add the proofs to these results, I must split it into two different frames
\begin{frame}
\begin{block}{Theorem}
Blah, blah, blah
\end{block}
\begin{block}{Proof}
Blah, blah, blah
\end{block}
\end{frame}
\begin{frame}
\begin{block}{Corollary}
Etc, etc, etc
\end{block}
\begin{block}{Proof}
Etc, etc, etc
\end{block}
\end{frame}
I think that it would be very helpful I if could simply define a command to close and then open the frame environment:
\def\newframe{ \end{frame} \begin{frame} }
\begin{frame}
\begin{block}{Theorem}
Blah, blah, blah
\end{block}
\begin{block}{Proof}
Blah, blah, blah
\end{block}
\newframe
\begin{block}{Corollary}
Etc, etc, etc
\end{block}
\begin{block}{Proof}
Etc, etc, etc
\end{block}
\end{frame}
However, this approach does not work. Does anyone know if there is any way to define such a command?
frame
is not really like normal LaTeX environments. Beamer determines the contents of a frame by finding what's between\begin{frame}
and\end{frame}
; with\newframe
it wouldn't see the implied\end{frame}
, which would show up only when\newframe
is "executed" (and probably give errors).beamer
provides\framebreak
in collaboration with theallowframebreaks
option to theframe
environment, but it breaks overlay support.fragile
. This seems to break the\framebreak
option... I'll close and open the environment manually.\begin{frame} \end{frame}
for you (preferably with a line break inbetween). This way your code becomes clearer.