I have three parts in my beamer presentation. Each part has its own table of contents (see below). Currently, the numbering of each section is connected i.e. while the sections in the TOC of part 1 are 1, 2, 3 etc. the numbering in part 3 continues with the numbering of the previous part e.g. 6, 7, 8 etc.
How can I change the code such that the numbering in each section's TOC always start from 1?
\documentclass{Bredelebeamer}
\usepackage[english]{babel}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\begin{document}
\part{part 1}
\begin{frame}
\partpage
\end{frame}
\section[Intro]{Intro}
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
\begin{frame}{frame1}
xxx
\end{frame}
\section[Main]{Main}
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
\begin{frame}{frame2}
xxx
\end{frame}
\part{part 2}
\begin{frame}
\partpage
\end{frame}
\section[Intro]{Intro2}
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
\begin{frame}{frame3}
xxx
\end{frame}
\section[Main]{Main2}
\begin{frame}{Outline}
\tableofcontents[currentsection]
\end{frame}
\begin{frame}{frame4}
xxx
\end{frame}
\end{document}
part{Part3}without the backslash,\end{footnotesize}in two places but no corresponding\begins, and no beamer theme specified (without which there aren't even any numbers for sections in tocs at all). – frabjous Apr 13 '22 at 17:39\makeatletter\AtBeginPart{\beamer@tocsectionnumber=0\relax\setcounter{section}{0}}\makeatotherin the preamble will work. – frabjous Apr 13 '22 at 19:30