Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How would I move the table of contents produced by \tableofcontents from the left sidebar to the main part of the slide? It produces a lot of unused white space, as in the following:

image

This code shows a MWE:

\documentclass{beamer}

\usetheme{Bergen}
\usecolortheme{beaver}
\beamertemplatenavigationsymbolsempty

\begin{document}
  \begin{frame}{Summary}
    \tableofcontents
  \end{frame}

  \section{A brief introduction to AAA AAA}

  \begin{frame}{Introduction to AAA AAA}
    Whatever
  \end{frame}

  \begin{frame}{Introduction to AAA AAA}
    Whatever
  \end{frame}

  \begin{frame}{Introduction to AAA AAA}
    Whatever
  \end{frame}

  \section{An even shorter introduction to BBB BBB}

  \begin{frame}{Introduction to BBB BBB}
    Whatever
  \end{frame}

  \begin{frame}{Introduction to BBB BBB}
    Whatever
  \end{frame}
\end{document}
share|improve this question

1 Answer 1

up vote 4 down vote accepted

If you just want to move the tableofcontents into the main text area you need to re-set the following three templates:

\setbeamertemplate{section in toc}{\inserttocsection}
\setbeamertemplate{subsection in toc}{\inserttocsubsection}
\setbeamertemplate{subsubsection in toc}{\inserttocsubsubsection}

enter image description here

However, since the Bergen theme is designed specifically to put things inside the sidebar I'm not sure this will look good, you'll need to check with a full-blown toc.

Specifically, the Bergen theme calls the inmargin inner theme, which is responsible for the toc placement. In the relevant .sty file you'll find:

\defbeamertemplate*{section in toc}
\defbeamertemplate*{subsection in toc}
...

and the other relevant definitions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.