1.8

Table Of Contents
Tip
Instead of page numbers, you might want to display the current record index and/or the total
number of records in the record set, in the document. There is a How-to that explains how to do
that: How to get the record index and count.
Creating a table of contents
A table of contents can only be created in a template script. The script should make use of the
pageRef() function. For an example, see "Creating a table of contents" on page533. If you don't
know how to write a script, see "Writing your own scripts" on page260.
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
page281). 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
Page 94