Notes on Creating Tables of Contents
A Table of Contents template defines the style, levels and numbering formats of a document report Table of Contents that a user can choose to apply to any kind of document report they are generating, in which case the Table of Contents template overrides any Table of Contents styles defined in the template or Normal.rtf file.
The simplest way to create a new Table of Contents is to copy one of the system-provided files (for portrait output or for landscape output) or another custom Tables of Contents, and edit the style definitions in the copy. However, you can create a Table of Contents from scratch if you prefer; this would be initially derived from the Normal.rtf file.
Use one of the methods outlined here to display the 'New Document Template' dialog and create the new Table of Contents template file.
After creating the new template file, edit the styles in the Document Template Designer using the 'Styles, Special Text and Table of Contents' facilities.
Publish > Model Reports > Templates :
In the Resources window, expand the 'Document Generation' folder, then:
Insert a new Table of Contents
To insert a new Table of Contents:
- Add at least one character of text to the document
- Set that to a 'Heading n' style. For example 'Heading 1'
- Move the cursor to the point at which to insert the Table of Contents, and select the option:
Document-Edit > Edit > Insert > Table of Contents.
A small dialog displays in which you specify the highest and lowest Table of Contents levels to apply in the table in this document; when you have specified the levels, click on the.
Note: If there are corresponding headings within the specified range, the Table of Contents displays; otherwise, the line remains blank.
- Remove the Heading Style text added above.
- Save the template.