Technical Support
Forums and Mailing Lists
Search Mackichan Web

SWP & SW
Version 5/5.5

Installation
Word Processing
Computations
Typesetting
File Issues
Graphics
Exam Builder
Style Editor
Other
Free Updates
Technical Articles

Scientific Notebook
Support Information
Troubleshooting

TeXnology
BibDB
TeXnology links

Document 391

How to change the division levels in the typeset table of contents

Version: 2.5, 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

The tocdepth counter in the typesetting specification determines which division headings are included in the automatically generated table of contents. You can modify the value of the tocdepth counter to change the division levels that appear in the table of contents.

  1. From the Typeset menu, choose Preamble.

    or

    In Version 2.5, from the File menu, choose Document Info, then select the Preamble tab sheet.

  2. Click the mouse in the entry box so that any existing commands are deselected.

  3. On a new line at the end of the preamble entries, type \setcounter{tocdepth}{x} where x is the lowest heading level you want to display in the table of contents:

    x if division numbers are to extend only to
    -1 Parts
    0 Chapters
    1 Sections
    2 Subsections
    3 Subsubsections
    4 Subsubsubsections
    5 Subsubsubsubsections

    Remember that LaTeX uses section as level 1, regardless of the document class.

  4. Choose OK.

Examples

The standard LaTeX book typesetting specification includes subsections as the lowest division heading in the table of contents. To also number subsubsections, add the following to the document preamble:

\setcounter{tocdepth}{3}

See also

How to extend or remove typeset division numbers

Last revised 10/09/09

This document was created with Scientific WorkPlace.



MacKichan Software, Inc. 19689 7th Avenue NE, Suite 183 #238 Poulsbo, WA 98370
Phone: 360-394-6033 Toll-free: 877-724-9673 Fax: 360-394-6039

Please email comments and suggestions regarding this site to webmaster@mackichan.com.
© Copyright 1998 - MacKichan Software, Inc. All rights reserved.