1

I have many sections in my document. Right now in the header I'm displaying each section's individual page numbers (for example: Section one has 3 pages, so it displays page 1, page 2, page 3, and section two restarts at page 1, etc.).

I'd like to at the same time in the footer display the document's overall page numbers (like they are usually numbered).

To make the header display as I'd like I clicked Page Number -> Format Page Numbers and told it to not continue from previous section. However, this formatting is universal to the document and I can't have a separate formatting in the footer.

Is this possible to accomplish?

robev
  • 179

2 Answers2

0

The only way I've found to accomplish this is to use the { SET } and { REF } fields:

On the first page of the section, use the { SET } field to initialize a variable holding the current page number: { SET pg_var_1 { PAGE }}

Then, in your footer, the document page number is { PAGE } and the section page number is { = {PAGE} - {REF pg_var_1} + 1}

Use CTRL+F9 to open new field brackets, then F9 to run the field. You'll have to repeat this for every section.

matt
  • 1
0

Greg Maxey lays out how to do this in his Page Numbering webpage.

He gives detailed instructions that produce the following:

Screenshot from Greg Maxey's page