You are here: Features > Tables of Contents > More About Tables of Contents > Auto-Generating a Table of Contents

Auto-Generating a Table of Contents

In many cases, Flare provides you with an initial TOC, which you further "build" (or create) using the TOC Editor. You can easily create a TOC manually, adding books, as well as links to topics, other TOCs, and external files, in any kind of structure you want. Another option is to auto-generate a TOC. You can do this by generating parts of a TOC based on the heading levels in your topics (<h1> through <h6>). When you auto-generate a TOC, you will use some of the same steps that you used when creating a TOC manually; you still add topic entries to a TOC manually. The difference is that auto-generating lets you create sub-entries in a TOC for the sub-headings in your topics.

Which method should you choose (a manual TOC or an auto-generated TOC)? There are advantages to both methods. Plus, you can use both methods if you want. You can start by auto-generating a TOC and then change it or supplement it manually.

How to auto-generate a table of contents

  1. Make sure your topics include headings with the <h1>, <h2>, <h3>, <h4>, <h5>, or <h6> styles.
  2. Create at least part of a TOC manually.
  3. Double-click a TOC entry for which you want to auto-create sub-entries.

    The Properties dialog opens.

  4. Select the Auto-generate tab.
  5. Select the check box Compute sub-entries from linked file.
  6. In the Action field, select either Insert Computed Entries or Replace with Computed Entries. "Insert Computed Entries" will add the TOC sub-entries below the one you selected. "Replace with Computed Entries" will remove the TOC entry that you selected, replacing it with the sub-entries based on the <h1> through <h6> styles in the topic.
  7. In the Depth field, click the down arrow and select a number from the list to specify how many levels of headings you want to include in the auto-generation.

    example

    If you select 3, Flare will create TOC sub-entries for all <h1>, <h2>, and <h3> headings in the topic.

  8. Click OK.
  9. Press CTRL+S or click to save your work.

 


  Best Practice: Try creating topics and a TOC at the same time from the TOC Editor.


 

Note: This feature is for online output types only (DotNet Help, HTML Help, WebHelp, WebHelp Plus, WebHelp AIR). It is not intended for print-based outputs (Adobe PDF, XHTML, Microsoft XPS, Microsoft Word, Adobe FrameMaker).

WHAT'S NEXT?

After you create a TOC, you need to enable TOCs in the skin you want to use for the target.

See Also

Downloads (PDF Format):

Flare Quick Guide

Flare Getting Started Guide

Flare What's New Guide

Flare Key Features Guide

Flare Transition From RoboHelp Guide

Flare Transition From FrameMaker Guide

Flare Styles Guide

Flare Printed Output Guide

Flare WebHelp Plus Guide

Flare Shortcuts