2

I'm making a beamer presentation and I would like the table of contents to start with all the sections shaded, rather than with the first section already highlighted and subsequent sections shaded, which is the default behaviour for pausesections. I've tried looking for similar questions but to no avail.

The following almost works, but whilst the initial overlay has all the sections shaded (good), the second overlay jumps to highlighting both Section 1 and Section 2 (bad). I presume this is because the first overlay adds 1 to the pausesections-counter.

\documentclass[10pt]{beamer} 
\begin{document}

\begin{frame}{Table of contents}
\only<1>{\tableofcontents[sectionstyle=shaded]}
\only<2->{\tableofcontents[pausesections]}
\end{frame}

\section{Section 1}

    \begin{frame}{Frame 1}
    \end{frame}

\section{Section 2}

    \begin{frame}{Frame 2}
    \end{frame}

\section{Section 3}

    \begin{frame}{Frame 3}
    \end{frame}

\end{document}

1 Answer 1

2

What about splitting the table of contents into two slides?

\documentclass[10pt]{beamer} 
\begin{document}

    \begin{frame}{Table of contents}
        \tableofcontents[sectionstyle=shaded]
    \end{frame}

    \addtocounter{framenumber}{-1}

    \begin{frame}{Table of contents}
        \tableofcontents[pausesections]
    \end{frame}

    \section{Section 1}

    \begin{frame}{Frame 1}
    \end{frame}

    \section{Section 2}

    \begin{frame}{Frame 2}
    \end{frame}

    \section{Section 3}

    \begin{frame}{Frame 3}
    \end{frame}

\end{document}

To prevent the change of the frame number after the first slide, just change the counter.

4
  • That's a neat solution, but unfortunately it adds 1 to the frame count. (I didn't include \insertframenumber{} in my MWE, but I'm using it the presentation that I'm writing.)
    – dwolfeu
    Commented Mar 12, 2016 at 17:04
  • @DanielWolf Then you can just add a \addtocounter{framenumber}{-1} between the first to slides. I changed the answer accordingly. Commented Mar 12, 2016 at 21:13
  • D'oh! Of course. Great solution.
    – dwolfeu
    Commented Mar 13, 2016 at 12:33
  • What about a table of contents in tow columns \tableofcontents[sections=6-] and \tableofcontents[sections=-7] Commented Nov 28, 2018 at 22:03

You must log in to answer this question.

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