GeneralHow to reset the chapter number in (scr)book with \part

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How to reset the chapter number in (scr)book with \part

Post by Montag »

Actually, it is a counter called "chapter". So when you have a new part (via \part) in your book or scrbook class, the chapter counter restarts with "1", "A" or whatever you set it to.

You need to put this into the preamble:

Code: Select all

\makeatletter
\@addtoreset{chapter}{part}
\makeatother
Just thought I'd put it out there. Found it after searching for about 30 minutes ... yes ...
Last edited by Montag on Wed Aug 11, 2010 1:00 pm, edited 3 times in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to reset the chapter counter in scrbook

Post by Stefan Kottwitz »

Alternatively: \numberwithin of amsmath or \counterwithin of chngcntr.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: How to reset the chapter number in (scr)book with \part

Post by localghost »

In case this topic represents a solution, it should be marked accordingly.


Best regards
Thorsten
Post Reply