Latex


Beamer: Reasons to avoid allowframebreaks

Recently we were relying too much on allowframebreaks to automatically split a frame to multiple slides.

We were trying to make our notes spread across all slides that were automatically generated. After reading the Beamer User Guide, we learned a couple of new things.

A) Once you use allowframebreaks then you cannot use overlays.

B) Any notes for the frame created using the \note command will be inserted after the first page of the frame and will not be split among other pages.

C) We should refrain from using the option allowframebreaks except for long bibliographies (which by the way should be avoided anyway in presentations).

D) The use of this option is evil ^___^ as it promotes bad design and lack of thought when creating a presentation.

Anyway, back to the drawing board!


Latex / Beamer: Automatically split the content of a frame to multiple slides

Did you ever wrote too much content for a frame?

Did that content spill out of the slide?

Were you too bored to create a new slide and split the content between them?

If the answer is yes, which most probably is, you will love the allowframebreaks parameter for the \begin{frame} directive.

\begin{frame}[allowframebreaks]{Bibliography}
	%Include a working bibliography of key texts that inform your study and methodology.
	%Your appendices may include Experiment Diagrams, Permissions for Human Subject Testing, etc.
	%Both bibliographies and required appendices tend to be discipline specific: know what the requirements are.
	\bibliography{bibliography}{}
	\bibliographystyle{IEEEtran}
\end{frame}

The \begin{frame}[allowframebreaks]{Bibliography} directive creates a new frame name Bibliography, if the contents of the frame exceed the size of the slide, it will automatically create new ones to accommodate the requirements.

Note: Using the allowframebreaks parameter automatically appends to the title of the slide Latin numbering (e.g. the first slide will be Bibliography I).


Latex / Beamer: Table of contents that shows other subsections only for current section

The following snippet will create a table of contents which will show the titles of all sections but it will include the subsections that belong to the current section only. This way, we can copy paste this slide in different parts of the presentation and have a custom table of contents per section.

\section{Introduction}

\begin{frame}{Outline for \secname}
	\tableofcontents[currentsection, hideothersubsections, sectionstyle=show/show]
\end{frame}