In my LaTeX beamer
presentation I have a long Table of Contents, which has been split across two columns by using the multicol
package. The problem is that I have not found any way to control vertical alignment in the multicols
environment.
Right now the left column starts lower than the right column, which looks weird. Instead, I would like the left column, or both columns, to be vertically aligned to the top.
I've found some related questions but nothing that solves my problem.
Look at the MWE shown below.
As you can see right before Section 3, I tried adding a \vfill
along a manual column break, but it didn't help... (The manual column break was added in order to keep Section 3's subsections together with the section in ToC).
Do you have any tricks?
Screenshot of the ToC slide:
MWE:
% MWE showing problems with vertical spacing in multicol ToC
\pagenumbering{arabic}
\documentclass[compress,14pt,t]{beamer}
\usepackage[latin1]{inputenc}
\usepackage{multicol}
\usepackage{charter}
\frenchspacing
\begin{document}
\begin{frame}
\frametitle{Outline}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}
\section{Section 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 2}
\begin{frame}Test\end{frame}
\subsection{Subsection 3}
\begin{frame}Test\end{frame}
\subsection{Subsection 4}
\begin{frame}Test\end{frame}
\section{Section 2}
\begin{frame}Test\end{frame}
\subsection{Subsection 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 2}
\begin{frame}Test\end{frame}
\subsection{Subsection 3}
\begin{frame}Test\end{frame}
\addtocontents{toc}{\newpage} % Splits manually the ToC into 2 columns
%\addtocontents{toc}{\vfill\newpage} % No difference
\section{Section 3}
\begin{frame}Test\end{frame}
\subsection{Subsection 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 2}
\begin{frame}Test\end{frame}
\subsection{Subsection 3}
\begin{frame}Test\end{frame}
\section{Section 4}
\begin{frame}Test\end{frame}
\subsection{Subsection 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 2}
\begin{frame}Test\end{frame}
\subsection{Subsection 3}
\begin{frame}Test\end{frame}
\subsection{Subsection 4}
\begin{frame}Test\end{frame}
\section{Section 5}
\begin{frame}Test\end{frame}
\subsection{Subsection 1}
\begin{frame}Test\end{frame}
\subsection{Subsection 2}
\begin{frame}Test\end{frame}
\end{document}