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.