Tables of contents

The following macros may be used in the main text for adding entries to the table of contents. They are automatically called by most sectional macros, but it is sometimes desirable to manually add additional entries.

<toc-main-1|entry>

<toc-main-2|entry>

Create an important entry in the table of contents. The macro toc-main-1 is intended to be used only for very important entries, such as parts of a book; it usually has to be added manually. The macro toc-main-2 is intended to be used for chapter or sections. Important entries are usually displayed in a strong font.

<toc-normal-1|entry>

<toc-normal-2|entry>

<toc-normal-3|entry>

Add a normal entry to the table of contents, of different levels of importance. Usually, toc-normal-1 corresponds to sections, toc-normal-2 to subsections and toc-normal-3 to subsubsections.

<toc-small-1|entry>

<toc-small-2|entry>

Add an unimportant entry to the table of contents, like a paragraph. Since such entries are not very important, some styles may simply ignore the toc-small-1 and toc-small-2 tags.

By redefining the following macros, it is possible to customize the rendering of tables of contents:

<toc-strong-1|content|where>

<toc-strong-2|content|where>

Used for rendering table of contents entries created using toc-main-1 resp. toc-main-2.

<toc-1|content|where>

<toc-2|content|where>

<toc-3|content|where>

<toc-4|content|where>

<toc-5|content|where>

Used for rendering table of contents entries created using toc-normal-1, toc-normal-2, toc-normal-3, toc-small-1 resp. toc-small-2.

<toc-dots>

The separation between an entry in the table of contents and the corresponding page number. By default, we use horizontal dots.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".