[texhax] Resetting \thechhapter for a single file

Donald Arseneau asnd at triumf.ca
Sat Jul 4 01:24:52 CEST 2009

Peter Seibel <peter at gigamonkeys.com> writes:

> 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?

You should use \include to input each chapter, and use
\includeonly when you want to produce a single chapter.

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list