[texhax] Resetting \thechhapter for a single file

Peter Seibel peter at gigamonkeys.com
Fri Jul 3 18:08:46 CEST 2009


Thanks.

-Peter

On Fri, Jul 3, 2009 at 2:09 AM, Susan Dittmar<Susan.Dittmar at gmx.de> wrote:
>
> 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
>



-- 
Peter Seibel
http://www.codersatwork.com/
http://www.gigamonkeys.com/blog/


More information about the texhax mailing list