You can customize a table of contents in numerous ways, to change its contents and appearance.
To customize a ToC created using the settings provided by Writer, place the cursor in the table of contents, right-click, and choose Modify. The Insert Index/Table dialog opens.
This dialog has five yabs. Any or all of them can be used when creating or editing a table of contents:
- Use the Index/Table tab to set the attributes of the table of contents.
- Use the Entriesand Styles tabs to format the entries in the table of contents.
- Use the Columns tab to put the table of contents into more than one column.
- Use the Background tab to add color or a graphic to the background of the table of contents.
You can display a preview box, located on the left-hand side of the dialog, to show as you work how the ToC will look. (If you do not see the preview box, select the Preview checkbox in the lower right-hand corner of the dialog.) The illustrations in this chapter show the dialog as it appears with the preview box hidden.
After making all your changes, click OK to save the table of contents so it appears in your document.
Using the Index/Table page
Use the Index/Table page to set the attributes of the table of contents.
Changing the title
To give the ToC a different title, type it in the Title field. To delete the title, clear the Title field.
Setting the type of index
In computer terminology, a table of contents is one of several types of indexes. Be sure the Type of Index is set to Table of Contents. (In the chapter on indexes, we’ll use this same dialog but choose “Alphabetic Index” and a different set of options. We won’t look at the other index types in this book; if you’re interested, see the Writer Guide for details.)
Choosing the scope of the table of contents
From the for drop-down list in the Create index/table area, select Entire document. There is an additional option to create a table of contents for just the current chapter.
Changing the number of levels included
Writer uses 10 levels of headings when it builds the table of contents (or the number of levels used in the document, whichever is smaller). To change the number of levels, enter the required number in the Evaluate up to level box.
Protecting against manual changes
To stop the table of contents being changed accidentally, select the Protected against manual changes option. The table of contents can then only be changed using the right-click menu or the Insert Table/Index dialog. If the box is not checked, the table of contents can be changed directly on the document page, just like other text. However, any manual changes to a table of contents are lost when you update it.
Creating a table of contents from an outline
Select the Outline option to create the table of contents using outline levels; that is, using paragraphs formatted with the styles specified in the Outline Numbering dialog. This is the method used for most books.
Creating from index marks
Not normally used for a table of contents, so deselect this option. We’ll look at the use of Index marks in in the chapter on indexes.
Creating from additional styles
Writer automatically assigns to the table of contents all paragraphs formatted with the default heading styles (Heading 1, Heading 2, and so on).
To assign paragraphs formatted with other styles, including custom styles:
- In the Create from area, select the Additional Styles checkbox.
- Click the (…) button to the right of the checkbox. The Assign Styles dialog opens.
- In the Not applied column, click the style that you want to assign to the table of contents.
- Use the >> button to move the selected style to the desired outline level. For example, to have paragraphs formatted with the selected style to appear as top-level entries in the table of contents, click the >> button once to move the style into the 1 column. To move the style in the opposite direction, use the << button.
- Click OK to save your changes and return to the Index/Table page or click Cancel to return without saving your changes.
Note: If the Outline box is checked, any changes you make to the position of one of the predefined Heading styles will be superseded by the default outline structure.
This book is licensed under the terms of the Creative Commons Attribution License, version 3.0.