Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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}
like image 709
user3416588 Avatar asked Dec 20 '22 13:12

user3416588


2 Answers

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}
like image 188
samcarter_is_at_topanswers.xyz Avatar answered Dec 31 '22 15:12

samcarter_is_at_topanswers.xyz


The solution is:

% preamble
\usepackage{multicol}

\begin{frame}{Índice}
\begin{multicols}{2}
  \tableofcontents
  \end{multicols}
\end{frame}
like image 27
user3416588 Avatar answered Dec 31 '22 15:12

user3416588