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?
frameis not really like normal LaTeX environments. Beamer determines the contents of a frame by finding what's between\begin{frame}and\end{frame}; with\newframeit wouldn't see the implied\end{frame}, which would show up only when\newframeis "executed" (and probably give errors). – egreg Oct 3 '12 at 9:30beamerprovides\framebreakin collaboration with theallowframebreaksoption to theframeenvironment, but it breaks overlay support. – Andrew Swann Oct 3 '12 at 11:53fragile. This seems to break the\framebreakoption... I'll close and open the environment manually. – Biel Cardona Oct 4 '12 at 12:42\begin{frame} \end{frame}for you (preferably with a line break inbetween). This way your code becomes clearer. – Hendrik Vogt Oct 5 '12 at 7:24