Tables of Contents

From Apache OpenOffice Wiki
Jump to: navigation, search


Writer’s table of contents feature lets you build an automated table of contents from the headings in your document. Whenever changes are made to the text of a heading in the body of the document or the page on which the heading appears, those changes automatically appear in the table of contents which it is next updated.

Before you start, make sure that the headings are styled consistently. For example, you can use the Heading 1 style for chapter titles and the Heading 2 and Heading 3 styles for chapter subheadings. This section shows you how to:

  • Create a table of contents quickly, using the defaults.
  • Customize a table of contents.

Template:Documentation/Note

Creating a table of contents quickly

Most of the time you will probably find the default table of contents to be what you need. Inserting a default TOC is simple:

  1. When you create your document, use the following paragraph styles for different heading levels (such as chapter and section headings): Heading 1, Heading 2, and Heading 3. These are what will appear in your TOC. Writer can evaluate up to ten levels of headings.
    Headings example.
  2. Click in the document where you want the TOC to appear.
  3. Choose Insert > Indexes and Tables > Indexes and Tables.
  4. Click OK. The result will be a typical table of contents.
    Table of contents example.

If you add or delete text (so that headings move to different pages) or you add, delete, or change headings, you need to update the table of contents. To do this:

  1. Place the cursor within the table of contents.
  2. Right-click and select Update Index/Table from the pop-up menu.

Template:Documentation/Note

Template:Documentation/Tip


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools