Writing your Document Tutorial 8 - Table of Contents

Overview

This is the eight video in the Writing your Document series. Previous tutorials in this series cover different tools you can use to write your documents, but you don't have to complete this tutorial series in any particular order.

In this tutorial you will learn about the Table of Contents (TOC) feature in Mellel:

  • Insert a TOC
  • Edit a TOC
  • Include Auto-Title Flows in the TOC
  • Format Auto-Titles in the TOC
  • Create Separate TOCs for Tag Flows

Tutorial Steps

A TOC is a list of the chapters, sub-chapters, headings, images, tables in a document. TOC items are sorted by their order of appearance in the document, and they may be categorized and include the page number in which they appear.

In Mellel, the TOC is based on Auto-titles that were added to the document and configured to appear in the TOC. The Auto-Titles Flows Setup window is used to determine which Auto-titles will appear in the TOC, and how will they be formatted and styled.

Insert a TOC

  1. Open the Writing your Document Demo Document practice file.
  2. Scroll down to the Table of Contents Auto-title.
  3. Place your cursor after the Table of Contents Auto-title.
  4. Press the Return key.
  5. Choose Insert > Table of Contents from the menu bar.

Edit a TOC

Since adding a TOC in Mellel is simple and quick, there is no need to update the existing table of contents. Rather, you need only to remove the existing TOC and insert a new one after you’ve made any changes:

  1. Place your cursor anywhere in the document.
  2. Choose Insert > Auto-Title > Heading from the menu bar.
  3. Type My New TOC Item and press the Return key.
  4. Select the existing TOC.
  5. Press the Delete key.
  6. Choose Insert > Table of Contents from the menu bar.

    The new TOC should now include your added Auto-title as well.

Include Auto-Title Flows in the TOC

The TOC is based on Auto-Titles in your document that were configured to be included in the TOC:

  1. Open the Auto-Title palette.
  2. Click the Edit button ().
  3. Choose Sub-heading from the Title flows list.
  4. Uncheck the Include in TOC checkbox under Title flow attributes.
  5. Click OK.
  6. Select the existing TOC.
  7. Press the Delete key.
  8. Choose Insert > Table of Contents from the menu bar.

    Note that sub-headings are now not included in the TOC.

Format Auto-Titles in the TOC

The Edit Title Flows window is also used to format how auto-title flows will appear in the TOC:

  1. Open the Auto-Title palette.
  2. Click the Edit button ().
  3. Choose Heading from the Title flows list.
  4. Click the TOC format tab.
  5. Verify that the Use a different format for Table of Contents checkbox is checked.
  6. Select the first Tab and Curr# elements in the format area and press the Delete key.
  7. Click OK.
  8. Select the existing TOC.
  9. Press the Delete key.
  10. Choose Insert > Table of Contents from the menu bar.

    Note that the heading number is no longer appended at the beginning of the Heading TOC items.

Create Separate TOCs for Tag Flows

TOCs can be configured to list Tag flows separately, or together with the Structural flows based on their location in the document:

  1. Open the Auto-Title palette.
  2. Click the Edit button ().
  3. Choose Figure from the Title flows list.
  4. Uncheck the List as separate section in TOC checkbox.
  5. Click OK.
  6. Select the existing TOC.
  7. Press the Delete key.
  8. Choose Insert > Table of Contents from the menu bar.

    Note that Auto-titles of the Figure flow now appear in the TOC alongside the structural flows, in accordance with their position in the document.

What's Next?

You should now be able to insert a TOC into your document, to edit it, to set which Auto-Title flows are included in the TOC and to format them as you need.

In Writing your Document Tutorial 9 - Variables you will learn how to use variables in your documents.

Additional Resources