# [OS X TeX] Section 0 in book class

Herbert Schulz herbs at wideopenwest.com
Mon Mar 9 13:50:17 CET 2009

On Mar 8, 2009, at 10:56 PM, Alain Schremmer wrote:

>
> On Mar 8, 2009, at 9:49 PM, Michael Sharpe wrote:
>
>>
>> On Mar 8, 2009, at 10:43 AM, Alain Schremmer wrote:
>>
>>> I am writing Chapter 13 in one of these multi-authors books and I
>>> wanted the first section to be
>>>
>>> 	13.0 Introduction
>>>
>> Perhaps you have some other settings that interfere with setting
>> the section number. The following seems to produce what you want.
>>
>> \documentclass]{book}
>> \begin{document}
>> \setcounter{chapter}{12}
>> \chapter{}
>> \setcounter{section}{-1}
>> \section{Zeroth section}
>> \end{document}
>
> You are absolutely right: Placing \addtocounter{section}{-1} after
> \chapter does it.
>
> I guess this has to do with the fact that the section number
> includes the chapter number so I should have thought of it.
>
> Still …
>
> Well, my curiosity has been satisfied.
>
> Grateful regards
> --schremmer

Howdy,

More likely is that the \chapter command resets the section counter to
zero (that makes a lot of sense) so you must push it back AFTER the
command.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex