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.

In the following presentation, the table of contents does not show on the second slide, but when I change the whole thing to an article (removing beamer related stuff), the table of contents is shown.

\documentclass{beamer}
\let\Tiny=\tiny
\usetheme{Warsaw}
\setbeamertemplate{headline}{}
\title{Title}  
\author{HaskellElephant}
\date{\today} 
\begin{document}

\begin{frame}
\titlepage
\end{frame} 

\frame{\tableofcontents}

\section{description of problem}
\section{Second Section}
  \subsection{sub1}
  \subsection{sub2}
  \subsection*{sub3}
\section{conclusion}
\end{document}

The whole thing is compiled (twice) on the texlive distribution from ubuntu 11.10.

How do I make the table of contents show up on the second slide?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Your example needs something to show and since you have only structural references but no actual frames there is no output shown. Compile the following two times.

\documentclass{beamer}
\let\Tiny=\tiny
\usetheme{Warsaw}
\setbeamertemplate{headline}{}
\title{Title}  
\author{HaskellElephant}
\date{\today} 
\begin{document}

\begin{frame}
\titlepage
\end{frame} 

\frame{\tableofcontents}

\section{description of problem}
\section{Second Section}
  \subsection{sub1}
  \subsection{sub2}
  \subsection*{sub3}
\section{conclusion}
\frame{dummy frame}
\end{document}

and table of contents returns.

share|improve this answer
add comment

In presentation mode the commands \section and \subsection don't produce text, so the table of contents is not compiled.

\documentclass{beamer}
\let\Tiny=\tiny
\usetheme{Warsaw}
\setbeamertemplate{headline}{}
\title{Title}  
\author{HaskellElephant}
\date{\today} 
\begin{document}

\begin{frame}
\titlepage
\end{frame} 

\frame{\tableofcontents}

\section{description of problem}
\begin{frame}
desc
\end{frame}
\section{Second Section}
  \subsection{sub1}
\begin{frame}
sub1
\end{frame}
  \subsection{sub2}
\begin{frame}
sub2
\end{frame}
  \subsection*{sub3}
\begin{frame}
sub3
\end{frame}
\section{conclusion}
\begin{frame}
concl
\end{frame}
\end{document}
share|improve this answer
    
This is a good answer, but it wasn't really the kind of answer I wanted. I really just wanted the table of contents to show up. –  HaskellElephant Jan 25 '12 at 15:19
add comment

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.