josephwright / josephwright/beamer
reset section numbers at \part
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.