Table of Contents

The table-of-contents class is used for styling an entire table of contents. It provides default settings for single items as well as settings that apply to the table of contents as a whole.

Selectors

  • Definitions:

    • table-of-contents

Style Settings

See also: Paragraph, Inline

Setting Type Examples Description
nesting-indentation Length 2em, 14pt The indentation of nested headings in the table of contents.
page-number-position Symbol trailing-column, none The position of the page number for each table of contents item.
trailing-column-fill Symbol dots, underline The characters that should fill the space between the table of contents item and the page number.

Pseudoclasses

See also: Paragraph, Inline

Example

// Adds dot leaders, indentation, and margins around the table of contents
table-of-contents {
  trailing-column-fill:     dots
  nesting-indentation:     3em

  margin-top:       10pt
  margin-bottom:    10pt
}