[OS X TeX] Section 0 in book class

Alain Schremmer schremmer.alain at gmail.com
Mon Mar 9 09:35:58 EDT 2009


On Mar 9, 2009, at 8:50 AM, Herbert Schulz wrote:

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

Yes, that makes perfect sense!

> so you must push it back AFTER the command.

Why couldn't I think of it?  :-(((

Computer stuff really isn't my medium.

Grateful regards
--schremmer




More information about the MacOSX-TeX mailing list