[OS X TeX] Section commands

George Ghio ghiog at netconnect.com.au
Thu Aug 12 08:45:10 EDT 2004


> \setcounter{\secnumdepth}{-2} % no numbers at all, see the familiar 
> documentation for details
> \setcounter{\tocdepth}{1}   % parts,chapters & sections are included 
> in the toc (book and report) or parts and sections.

Thank you for these. But I think that they should read

\setcounter{secnumdepth}{-2} and \setcounter{tocdepth}{1}

At least that is what works. Note no second " \ " . Is this right ?

Still learning.

Also thanks Herb and Will.

George


On 10/08/2004, at 11:06 PM, Maarten Sneep wrote:

> On 10 aug 2004, at 14:45, Will Robertson wrote:
>
>> On 10 Aug 2004, at 10:10 PM, George Ghio wrote:
>>
>>> What I want to achieve is a document with sections and sub-sections 
>>> that have only a titles and no numbers or perhaps chapters with with 
>>> just titles and no "Chapter" or "Numbers" .
>>>
>>> This is for a book of short stories from a writers group.
>>
>> You can do that with the \chapter*{} and \section*{}, etc, commands.
>
> You'd better set the \secnumdepth and \tocdepth counters:
>
> \setcounter{\secnumdepth}{-2} % no numbers at all, see the familiar 
> documentation for details
> \setcounter{\tocdepth}{1}   % parts,chapters & sections are included 
> in the toc (book and report) or parts and sections.
>
> Look into the Memoir class to easily format chapter headings (you 
> don't want to mess with just sections). If you suppress the numbers, I 
> believe the "chapter" is killed as well.
>
> Maarten
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list