53

I am looking for a way to insert explicit frame breaks. I'd like to use the built-in frame title continuation feature. The only way I have found is to play with different values of the allowframebreaks option, but one doesn't really have much control of where the frame break is actually set.

Martin Scharrer
  • 262,582
AlexG
  • 54,894
  • Could you explain exactly what you mean by a "framebreak" it's not clear what that is. Beamer provides a frame environment. You want beamer to do something within that environment? – Seamus Mar 14 '11 at 13:25
  • If the content does not fit onto one frame, allowframebreaks option instructs beamer to automatically break it between two or more frames while keeping the frametitle of the first frame (given as argument to frame environment) and appending a roman number or something like cont'd. – AlexG Mar 14 '11 at 13:36
  • So you want to be able to simulate this but with an explicit frame break? Is that it? Sort of like \newpage in articles. – Andrew Stacey Mar 14 '11 at 13:45

1 Answers1

74

You can use \framebreak to insert an explicit frame break (see the beamer manual p.61). Note that the manual warns on several different places to not use this feature because it is "evil". The \framebreak macro stands for \pagebreak<presentation> and inserts the frame/page break only in presentation mode but e.g. not in article or other modes. Use \pagebreak directly if you don't want that.

\documentclass{beamer}

\begin{document}
\begin{frame}[allowframebreaks]{Title}
A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\
\framebreak
B\\ B\\ B\\ B\\ B\\ B\\ B\\\framebreak B\\ B\\ B\\ B\\ B\\ B\\
\end{frame}
\end{document}
David Carlisle
  • 757,742
Martin Scharrer
  • 262,582
  • Thanks a lot! Command \framebreak is exactly what I was looking for. – AlexG Mar 14 '11 at 14:07
  • 6
    why is this considered evil? – Seamus Mar 14 '11 at 14:08
  • 14
    @Seamus: I was just citing the manual. Here the paragraph in full: p.61 "The use of this option is evil. In a (good) presentation you prepare each slide carefully and think twice before putting something on a certain slide rather than on some different slide. Using the allowframebreaks option invites the creation of horrible, endless presentations that resemble more a “paper projected on the wall” than a presentation. Nevertheless, the option does have its uses. Most noticeably, it can be convenient for automatically splitting bibliographies or long equations." – Martin Scharrer Mar 14 '11 at 14:09
  • 6
    I see. It is evil from a presentation point of view, not because it does violence to the internal creation of the presentation or the like. Thanks! – Seamus Mar 14 '11 at 14:10
  • 1
    I have found that \vfill did not work any more when following a \framebreak while it did in a frame by itself – Bastian Jun 05 '16 at 08:57
  • 2
    @Bastian: Well, fills on boundaries like framebreaks are discarded automatically. Try writing \vfill\vspace{0pt} to add an empty vbox after the fill in order to protect it. – Martin Scharrer Jun 14 '16 at 19:32