[texhax] Resetting \thechhapter for a single file

Susan Dittmar Susan.Dittmar at gmx.de
Fri Jul 3 11:09:49 CEST 2009


Quoting Peter Seibel (peter at gigamonkeys.com):
> I've got some TeX I use to typeset a book using the memoir class. I
> also want to generate files of individual chapters. My chapter headers
> use \thechapter to get the chapter number but when I do individual
> files it's always 1. Is there some easy way to change the value in the
> preamble?

\setcounter{chapter}{3} in the preamble, or before the \chapter command,
will have you start with chapter 4. (That's because the \chapter command
first increases the counter by 1, then uses it.)

Hope that helps,

	Susan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20090703/1af3233b/attachment.bin>


More information about the texhax mailing list