Writer Guide

Choosing the scope of the table of contents
The for drop-down list in the Create index/table area, allows you to select whether
the TOC will cover all the document's headings (Entire document) or just the
headings of the chapter where it is inserted. Writer identifies a “chapter” as all the
headings between two first level outline headings (normally Heading 1).
Creating a table of contents from an outline
The third section of the Index/Table page is used to determine what Writer should use
to create the TOC. The available choices (not mutually exclusive) are:
Outline
Additional styles
Index marks
By default Writer uses the outline levels; that is, paragraphs formatted with the
paragraph styles associated with outline levels in Tools > Outline Numbering. In
the default document, Heading 1 has outline level 1, Heading 2 outline level 2 and so
on up to Heading 10.
You can change the paragraph styles included in the outline as described in
“Defining a hierarchy of headings” in Chapter 6 of this guide. You can include other
paragraph styles in the TOC by assigning an outline level to those styles. To do this,
modify the paragraph style definition: go to the Outline & Numbering page for the
style, and select the required outline level. Click OK to save the change.
Figure 334: Specifying an outline level on the Outline & Numbering page for a
paragraph style
Creating from additional styles
By selecting the Additional Styles option on the Index/Table page, you can add more
paragraph styles to the TOC. This can be useful when you want to include in the TOC
an annex (appendix). If the Outline option is also selected, the additional styles will
be included in the table of contents together with the ones defined in the outline
numbering. However, headings included in the TOC using this feature are not
hyperlinked to the headings in the document body as are headings assigned to
outline levels.
Creating from index marks
This selection adds any index entries that you have inserted into the document by
using Insert > Indexes and Tables > Entry. Normally you would not use this
selection for a table of contents. However, if you do wish to use it, be sure to select
Table of Contents from the drop-down list in the Insert Index Entry dialog box (see
Figure 341) when you are entering the index entries for use in a TOC, so that Writer
can distinguish between them and any index entries intended for inclusion in an
alphabetic index.
334 OpenOffice.org 3.3 Writer Guide