2018.2

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 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 page1128.
For a multi-page, cross-section table of contents you must use a Post Pagination Script; see
"Creating a Table Of Contents" on page767.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page722.
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
page751). Control Scripts can also change where page numbers restart.
Page 421