I'm trying to make a nice two column table of contents in beamer. There are a lot of questions about it, but I can't see that anyone really answers my problem.
Using the multicol environment, splitting the ToC is easy. However, the ToC is internally badly aligned, even thought the number of entries are even. I've added the code
\makeatletter
\patchcmd{\beamer@sectionintoc}
{\vfill}
{\vskip1.5em}
{}
{}
\makeatother
to add some more space, which also emphasises the bad alignment.
The question Beamer: Vertical alignment of multi-column ToC addresses the problem, but the solution is manual (providing which sections of the ToC that should be printed in which column). I believe it probably should be some way to fill the space needed in the first column such that the top of the two columns are balanced, but I have no idea how. Any ideas?
MWE:
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{multicol,etoolbox}
\usetheme{Boadilla}
\usecolortheme[named=OliveGreen]{structure}
\usefonttheme[stillsansseriflarge]{serif}
\AtBeginSection[]
{
\begin{frame}{Innhold}{\hfill}
\begin{columns}
\column{.1\textwidth}
\column{.8\textwidth}
\begin{multicols}{2}
\centering
\tableofcontents[currentsection, sectionstyle=show/shaded,
%subsectionstyle=show/show/hide
]
\end{multicols}
\column{.1\textwidth}
\end{columns}
\end{frame}
}
\makeatletter
\patchcmd{\beamer@sectionintoc}
{\vfill}
{\vskip1.5em}
{}
{}
\makeatother
\begin{document}
\begin{frame}
{Innhold}{}
\begin{columns}
\column{.1\textwidth}
\column{.8\textwidth}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\column{.1\textwidth}
\end{columns}
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\section{This is a section}
\begin{frame}
{}
Some content
\end{frame}
\end{document}

columnsandmulticolsat the same time? – Symbol 1 Aug 24 '15 at 09:02