0

I am trying to combine two presentations into one tex file. After the title of the second one, I still get the sidebar components of the first presentation. Do you know any way to 'restart' the sidebar to reflect only the second table of contents?

1 Answers1

0

I believe that another question and answer to a similar, but broader, question may contain a solution to your current (and perhaps similar) problem(s).

In particular, as noted in another answer, \tableofcontents lists only sections within the current part. So you can simply do as suggested in @samcarter's comment, as follows:

\documentclass{beamer}

\title{Title}
\subtitle{Subtitle}
\author{Author}

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

    \part{I}

    \begin{frame}
         Part I:
         \tableofcontents
    \end{frame}

    \section{First part of I}

    \begin{frame}
         <slide I.1>
    \end{frame}

    …

    \section{Second part of I}

    \begin{frame}
        <slide I.2>
    \end{frame}

    \section{Final part of I}

    \begin{frame}
         <slide I.M>
    \end{frame}

    \part{II}

    \begin{frame}
         Part II:
         \tableofcontents
    \end{frame}

    \section{First part of II}

    \begin{frame}
         <slide II.1>
    \end{frame}

    …

    \section{Final part of II}

    \begin{frame}
         <slide II.M>
    \end{frame}
\end{document}

I have created a demo of the above code on Overleaf.

Coby Viner
  • 1,939