[Tex/LaTex] Empty Table of Contents with Beamer

beamertable of contents

The first slide in the following beamer presentation is empty:

\documentclass{beamer}
\usepackage[english,ngerman]{babel}

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

\begin{frame} \frametitle{slide1}
slide 1
\end{frame}

\end{document}

How can I include slide1 in the table of contents?

Best Answer

The table of contents includes sections only. Add \section{Something} before your slide to see something in the table of contents:

\section{Section 1}
\begin{frame} \frametitle{slide1}
slide 1
\end{frame}

\section{Section 2}