josephwright / josephwright/beamer

reset section numbers at \part

Open
#461 0 comments 0 reactions 1 assignee View on GitHub

@josephwright is already working on this.

Since Jan 29, 2018.

enhancement
Dominant language
TeX
Stars
1.7k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

(this is not a bug but a feature request)

As reaction to https://github.com/josephwright/beamer/issues/456 I wanted to reset the section numbers at \part. But this only works for tableofcontents if one also set the count \beamer@tocsectionnumber to zero. Would it be possible to have a better interface?

\documentclass[]{beamer}
\useinnertheme{rounded}
\makeatletter
\@addtoreset{section}{part}
\makeatletter
\begin{document}
\part{Part 1}

\begin{frame}
  \frametitle{Toc Part \thepart}
  \tableofcontents
\end{frame}

\section{Section 1}

\begin{frame}
\frametitle{Frametitle}
Content section \thesection
\end{frame}

\part{Part 2}
%\makeatletter \beamer@tocsectionnumber=0 \makeatother %needed

\begin{frame}
 \frametitle{Toc Part \thepart}
 \tableofcontents %wrong number
\end{frame}

\section{Section 1}


\begin{frame}
\frametitle{Frametitle}
Content section \thesection
\end{frame}

\end{document}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.