Tables of contents

Navigation:  Working with large documents > Tables of references (TOC, index, etc.) >

Tables of contents

Previous pageReturn to chapter overviewNext page

A table of contents (TOC) is a list of all headings in the document, each with a page number.

Unlike an index, you do not have to identify the entries that you want to appear in the table of contents beforehand. Your document merely has to be outlined. For more information, see Outlines.

Based on the outline, Write already knows which headings the text contains and which hierarchy they have.

Thus, a table of contents is easy to create:

1.Position the text cursor at the beginning of the line in which the table of contents should be placed.
2.Choose the ribbon command References | group Table of contents | Generate toc_generate_icon.

As soon as you confirm with OK, the table of contents is inserted into the text. If a table of contents already exists, it will be updated at the existing position.

The Love Life of Trees.......1

 In Spring...................1

   March.....................1

   April.....................3

   May.......................4

 In Summer...................7

 In Autumn..................10

Excerpt from a table of contents

Write displays the headings on the left. To the right of each heading, the corresponding page number is displayed. If you click on an entry in the table of contents with the key combination Ctrl + left mouse button, you can jump to the respective place in the document.

Options of the dialog box

The options in the dialog box for this command have the following functions:

You can use the option Include levels to specify the outline levels to be displayed in the table of contents. All levels (1 through 9) are displayed by default.

Show page numbers: If this option is enabled, the table of contents is output with page numbers (including tab leader).

Right align page numbers: If this option is enabled, the page numbers will appear in the right margin, as shown in the above figure. If you disable the option, the page numbers will be placed directly to the right of the headings.

Tab leader: Here, specify the type of tab leader. Dots are selected in the above figure.

Use hyperlinks instead of page numbers (only for web and EPUB files): If this option is enabled, you will get the table of contents without page numbers when exporting your document as an HTML file or EPUB file. Instead, the headings will be displayed as hyperlinks that you can click on to jump to the corresponding section of text.

Use numbering: If you have numbered the headings in the document, they will also be numbered accordingly in the table of contents when this option is enabled. If you do not want numbering, disable this option.

For information on numbering the headings of a document, see Numbering headings.

Keep tabs after numbering: If the headings in the document are numbered and you have used tabs there, these are also retained for the table of contents when this option is enabled. If this option is disabled, these tabs are not included in the table of contents.

If you enable the option Use up to first tab, Write checks each heading to see if there are any tabs in it. If a heading contains tabs, any text behind the first tab is ignored when the heading is imported into the table of contents.

Additional information:

For information on updating tables of references, see Updating tables of references.

For information on editing and formatting tables of references, see Editing and formatting tables of references.