Document Classesbeamer: span frames with theorem or proof?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
murraye
Posts: 34
Joined: Sat Aug 15, 2009 6:25 pm

beamer: span frames with theorem or proof?

Post by murraye »

Beamer doesn't seem to allow one to begin a theorem environment, or a
proof environment, on one frame and not end it until another. At least
the following generates errors:

Code: Select all

\documentclass{beamer}
\begin{document}

\begin{frame}
\begin{theorem}
text here
\end{frame}

\begin{frame}
and rest here
\end{theorem}
\end{frame}
\end{document}
Is there some work-around?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

beamer: span frames with theorem or proof?

Post by localghost »

Search the beamer manual for »allowframebreaks« and pay attention to the tips.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
murraye
Posts: 34
Joined: Sat Aug 15, 2009 6:25 pm

beamer: span frames with theorem or proof?

Post by murraye »

localghost wrote:Search the beamer manual for »allowframebreaks« and pay attention to the tips.
Thorsten
Of course I found that option and searched through the guide, but I still don't see how to do it. I tried, for example, the following:

Code: Select all

\begin{frame}[allowframebreaks,fragile]
\begin{theorem}
text here

\framebreak

and rest here
\end{theorem}
\end{frame}
However, while I don't get any error, I don't get a break in the body of the theorem environment between two "pages".
M.A
Posts: 58
Joined: Sun Nov 30, 2008 10:42 am

Re: beamer: span frames with theorem or proof?

Post by M.A »

I faced the same problem, any hints?
The allowframebreaks option doesn't handle theorems.
Post Reply