There are two basic methods for adding page auto-numbers (i.e., page numbers that also include the chapter or volume auto-number) to print-based output—(1) by inserting variables into page layout frames or (2) by setting the auto-numbers on the
Note: Only chapter and volume auto-numbers are supported. Section auto-numbers are not supported in this feature.
Insert variables into page layout frames (not supported in print index) With this method, you can insert the appropriate auto-number variables in your page layouts. This is the fastest and easiest solution if you are not also creating a print index. See Inserting Chapter, Section, and Volume Number Variables into Frames and Inserting Page Numbers into Frames.
example
Let's say you have a project with chapter auto-numbers in topics that you have designed to be the start of new chapters in your output. In order to include those same chapter numbers in the page numbering, you opened your page layout, selected the footer frame, and pressed F2 to edit it. Inside that footer frame, you inserted a chapter number variable, typed a period, and then inserted a page number placeholder. Like this:
When you view the generated output, you see the page numbers displayed correctly as 1.1, 1.2, 1.3, 2.1, 2.2, and so on. Unfortunately, if you also include a print index in the output, the page numbers are displayed as 1, 2, 3, 4, etc. In other words, the page numbers are shown in the index, but the chapter auto-numbers are not.
Set auto-numbers on
How to set auto-numbers on
Create your page layout(s). In the appropriate header or footer frames, insert a page number placeholder. DO NOT insert a chapter or volume number variable. See About Page Layouts and Inserting Page Numbers into Frames.
example
Let's say you have a project with chapter auto-numbers in topics that you have designed to be the start of new chapters in your output. You want to include those same chapter numbers in the page numbering at the bottom of pages, and you also want them to display in a print index that you are creating.
First, open your page layout, select the footer frame, and press F2 to edit it. Inside that footer frame, you insert a page number placeholder. When finished, it should look something like this:
Open your
The Properties dialog opens.
In the Reset to field, enter the appropriate commands. For a chapter auto-number, you can use {chapnum}. For a volume auto-number, you can use {volnum}. You can also insert any text, such as a period or dash, as well as a counter command, such as {n}.
example
Let's say that you want to display the chapter auto-number, followed by a period and then the page number. In that case, you would type the following:
{chapnum}.{n}
The {chapnum} command indicates a chapter auto-number. If you had wanted to show the volume auto-number instead, you would have used the {volnum} command.
Because you want a period to separate the chapter auto-number and the incremented page number, you simply type it. Then you add the page number command, which is {n}.
to save your work.Build and view the output. See Building Output and Viewing Output.
When you view the generated output, you will see the page numbers displayed correctly (e.g., 1.1, 1.2, 1.3, 2.1, 2.2, and so on). In the generated print index, you will see the same auto-number/page number combination—as long as your topics include index keywords (see Inserting Index Keywords).