2019.2

Table Of Contents
Creating a table of contents
A table of contents can only be created in a script.
If you are looking to create a short, simple table of contents in one section, you could add a
Standard Script that uses the pageRef() function. For an example, see "Creating a table of
contents" on page1317.
For a multi-page, cross-section table of contents you must use a Post Pagination Script; see
"Creating a Table Of Contents" on page902.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page853.
Configuring page numbers
By default the page numbers are Arabic numerals (1, 2, 3, etc.) without leading zeros nor prefix,
and page numbering starts with page 1 for each section. But this can be changed. To do that:
1.
On the Resources pane, right-click a section in the Print context and click Numbering.
2.
Uncheck Restart Numbering if you want the page numbers to get consecutive page
numbers, instead of restarting the page numbering with this section.
Note
Even if a section is disabled, so it doesn't produce any output, this setting is still
taken into account for the other sections. This means that if Restart Numbering is
checked on a disabled section, the page numbering will be restarted on the next
section.
Disabling a section can only be done in a Control Script (see "Control Scripts" on
page885). Control Scripts can also change where page numbers restart.
3.
Use the Format drop-down to select uppercase or lowercase letters or Roman numerals
instead of Arabic numerals.
4.
In Leading Zeros, type zeros to indicate how many digits the page numbers should have.
Any page number that has fewer digits will be preceded by leading zeros.
5.
Type the Number prefix. Optionally, check Add Prefix to Page Counts, to add the prefix
to the total number of pages, too.
6. Close the dialog.
Page 501