0

I have put several pauses in throughout the presentation and now the table of contents has been split by the pauses. I want the table of contents to show each section and subsection once though.

For example if before I had a section called Bob and then I put a pause in on a slide in that section, I would then seemingly have 2 sections called Bob on the contents page. Like below:

\documentclass{beamer}

\begin{document}

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

\begin{frame}
    \section{bob}
       bob bob bob
\pause 
        bob bob bob
\end{frame}

\end{document}
5
  • Then show us the bob.tex file, please ;-)
    – user31729
    Jun 5, 2015 at 18:13
  • bob.tex now above, enjoy :P
    – bob
    Jun 5, 2015 at 18:36
  • 2
    Is there a reason you need to declare your "section" inside of the frame? When the "section" is declared prior to the frame, everything works as expected.
    – cptnjtk
    Jun 5, 2015 at 19:07
  • @cptnjtk: You should transfer your comment into an answer!
    – user31729
    Jun 5, 2015 at 20:56
  • @ChristianHupfer: OK, thanks! I was not sure if I was missing something from the op or not.
    – cptnjtk
    Jun 5, 2015 at 22:25

1 Answer 1

1

By declaring your \section{...} before you begin a frame you will fix the issue of having duplicate section titles in the table of contents. For example:

\documentclass{beamer}

\begin{document}

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

\section{bob}
    \begin{frame}
       bob bob bob
     \pause 
       bob bob bob
    \end{frame}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .