33

From Splitting TOC into two columns on single frame in beamer, I'd like to know whether it is possible to control the position of the breaking point between column 1 and column 2?

pluton
  • 16,421

2 Answers2

35

Apparently, \addtocontents also works with the beamer class. Use \newpage (not \clearpage!) to force a column break.

\documentclass{beamer}

\usepackage{multicol}

\begin{document}

\begin{frame}{\contentsname}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}

\section{bla}
\begin{frame}{bla}
Some text.
\end{frame}

\section{blubb}
\begin{frame}{blubb}
Some text.
\end{frame}

\section{foo}
\begin{frame}{foo}
Some text.
\end{frame}

\addtocontents{toc}{\newpage}

\section{bar}
\begin{frame}{bar}
Some text.
\end{frame}

\end{document}
pluton
  • 16,421
lockstep
  • 250,273
  • do have also a solution to this realted problem? https://tex.stackexchange.com/questions/159078/two-column-beamer-toc-with-control-over-the-breaking-point-and-without-balancing – bonanza Feb 09 '14 at 11:26
22

An excellent solution has been posted here:

https://tex.stackexchange.com/a/136082/113639

\begin{frame}
    \frametitle{Outline}
    \begin{columns}[t]
        \begin{column}{.5\textwidth}
            \tableofcontents[sections={1-3}]
        \end{column}
        \begin{column}{.5\textwidth}
            \tableofcontents[sections={4-5}]
        \end{column}
    \end{columns}
\end{frame}

As you can see, the break points are manual here (using the sections= parameter). Furthermore, this solution avoids all the vertical alignment problems of the other multicols solutions I have seen here so far, where the second column would often not start at the top.