How to split table of contents across multiple slides with Latex Beamer? - latex

I currently am preparing some slides for a presentation and am using Latex with the Beamer package. Currently the sections and subsections of my presentation cause the presentation overview text in the table of contents slide to extend past the bottom of the page.
Is there a way to split my table of contents up so they are displayed across multiple slides?

\begin{frame}[allowframebreaks]{Outline}
The above code will split any over hang across multiple slides.

You can also try:
\begin{frame}[shrink]{Outline}
The above will try to shrink content to fit frame margins.

You can divide your presentations in parts with
\part{1} .... \part{n}
then you can show the toc of every part on an other slide with
\tableofcontents[part=1]
If you use
\tableofcontents[currentsection]
only the toc of the part will be displayed...

If you split the table of contents manually, you have more fine control to select a good break point:
\documentclass{beamer}
\begin{document}
\begin{frame}
\only<1>{\tableofcontents[sections={1-4}]}
\only<2>{\tableofcontents[sections={5-}]}
\end{frame}
\section{title1}
\begin{frame}
content...
\end{frame}
\section{title2}
\begin{frame}
content...
\end{frame}
\section{title3}
\begin{frame}
content...
\end{frame}
\section{title4}
\begin{frame}
content...
\end{frame}
\section{title5}
\begin{frame}
content...
\end{frame}
\section{title6}
\begin{frame}
content...
\end{frame}
\section{title7}
\begin{frame}
content...
\end{frame}
\section{title8}
\begin{frame}
content...
\end{frame}
\end{document}

Related

How do you modify the title font options for a single slide in Beamer?

I'm writing a presentation in Beamer, the default options for the font title are the following
\setbeamerfont*{frametitle}{size=\Large,
series=\bfseries,
parent=structure}
I want to override those option just for a couple of slides, but I didn't find any answer.
For example, I'd like to lower the size and eliminate the bold
You can restrict any changes you make to only a couple of frames if you make them within a group {...}:
\documentclass{beamer}
\setbeamerfont*{frametitle}{size=\Large, series=\bfseries, parent=structure}
\begin{document}
\begin{frame}
\frametitle{Slide B}
Content for slide B
\end{frame}
{
\setbeamerfont{frametitle}{size=\Tiny, series=\normalfont}
\begin{frame}
\frametitle{Slide B}
Content for slide B
\end{frame}
}
\begin{frame}
\frametitle{Slide B}
Content for slide B
\end{frame}
\end{document}
I solved my issue by placing
\begin{frame}{\normalsize{FRAMETITLE}}
\end{frame}
in the frame I needed to modify. I know it was stupid, just to say I solved

Switch Overlay Specification in Latex Beamer

I have a beamer document with
\beamerdefaultoverlayspecification{<+->}
in the preamble to make \items appear separately. However, this seems to also make \bibitems
appear separately. How can I switch back to 'normal' within the document, such that all bibitems appear on one slide?
You can change the default overlay specification before the bibliography:
\documentclass{beamer}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\beamerdefaultoverlayspecification{<+->}
\begin{document}
\begin{frame}
\begin{itemize}
\item content...
\item content...
\end{itemize}
\end{frame}
\beamerdefaultoverlayspecification{}
\begin{frame}
\nocite{knuth:ct,angenendt}
\printbibliography
\end{frame}
\end{document}

Latex Beamer: Increase spacing between sections in section navigation bar

I would like to modify my Latex Beamer Template.
Hence, I would like to increase the space between the displayed sections in the section navigation bar. At the moment the are left indented but the sections are way to close together.
I use the following code to generate the headline:
setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
How can I modify the spacing between the displayed section?
The tipple fill plus1filll you insert after the navigation makes it flush left. If you remove it, the sections will automatically be distributed within the available paper width:
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{}
\end{beamercolorbox}%
}
}
\begin{document}
\section{title}
\begin{frame}
content...
\end{frame}
\section{title}
\begin{frame}
content...
\end{frame}
\end{document}
If you want to keep the sections flush left and just add some additional space between:
\documentclass{beamer}
\setbeamertemplate{headline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=3ex,dp=1.125ex]{palette tertiary}%
\insertsectionnavigationhorizontal{\paperwidth}{}{\hskip0pt plus1filll}
\end{beamercolorbox}%
}
}
\setbeamertemplate{section in head/foot}{\insertsectionhead\hspace{0.5cm}}
\begin{document}
\section{title}
\begin{frame}
content...
\end{frame}
\section{title}
\begin{frame}
content...
\end{frame}
\end{document}

How to put a big centered "Thank You" in a LaTeX slide

I want a "Thank you" to be displayed at the center of a slide in LaTeX with a big font size.
I usually do something like this:
\begin{frame}{}
\centering \Large
\emph{Fin}
\end{frame}
If you want larger, you could try one of the \LARGE, \huge, or \Huge. Here is a sample of how it looks with the Montpellier theme in the orchid colour theme.
Try one of the following two:
\documentclass[aspectratio=43,12pt]{beamer}\usetheme{Goettingen}
\begin{document}
\begin{frame}%% 1
\begin{center}
\Huge Thank You!
\end{center}
\end{frame}
\begin{frame}%% 2
\begin{center}
{\fontsize{40}{50}\selectfont Thank You!}
\end{center}
\end{frame}
\end{document}
Another approach could be to use a theme which provides a special frame for this, e.g. with the metropolis theme, one can simply do
\documentclass{beamer}
\usetheme{metropolis}
\begin{document}
\begin{frame}
normal frame
\end{frame}
\begin{frame}[standout]
Thanks
\end{frame}
\end{document}
I did it like this
\begin{frame}{}
\centering \Huge
\emph{Thank You}
\end{frame}

How split a /tableofcontents in two or more columns?

I have a long index (outline) for a presentation. Obviosly my index exceeds the size of a presentation page.
Is there a way to split a /tableofcontents in two columns?. This my code to generate the index.
\begin{frame}{Índice}
\tableofcontents
\end{frame}
For a better control over the break point, one could also split the toc manually
\begin{frame}
\begin{columns}[onlytextwidth,T]
\begin{column}{.45\textwidth}
\tableofcontents[sections=1-2]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[sections=3-5]
\end{column}
\end{columns}
\end{frame}
The solution is:
% preamble
\usepackage{multicol}
\begin{frame}{Índice}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}

Resources