About Arbortext Styler > Creating Headers and Footers > Adding Page Numbers to Headers and Footers > x of y pages Numbering
  
x of y pages Numbering
Example: Adding the String X Of Y Pages to a Footer
The example given below adds the current page number to a footer, in the form x of y pages.
1. In the Generated Contents list The Generated Contents list icon - a text box containing lines of text, create a new Generated Content object and name it numbered-footer.
Refer to Adding Content to a Header or Footer for an example of how to create content for a header or footer.
2. Highlight numbered-footer then click the Edit button to open the Generated Text Editor for the footer. Place your cursor in the right hand cell of the footer table, then choose Insert > Page Number. Arbortext Styler will add the object FormattedPageNumber into the cell.
3. After FormattedPageNumber object, add a space, the word of and another space, then choose Insert > Final Page Number. The Final Page Number dialog box opens.
4. Select Document to add the number of the last page of the entire document. Click OK to exit the dialog box.
Arbortext Styler will add the object FinalPageNumber into the cell.
5. After the FinalPageNumber object, add a space and the word pages.
This is an image of the “FormattedPageNumber” of “FinalPageNumber” pages setting for the header
6. Choose File > Apply and Close to save the change and exit the Generated Text Editor. You will see that the read only field in the properties area of the Generated Contents list describes the generated text settings you have made for your footer.
You have now configured the content for your Generated Content object.
7. Assign the Generated Content object numbered-footer to the page region representing your footer.
8. If you have not already done so, assign the page region representing your footer to the page type representing the layout of the pages that should display your footer.
9. Assign the page type to the relevant page set, if you have not already done so.
10. Choose Preview > Print.
In the Print Preview window, note that the phrase x of y pages displays in the bottom right-hand corner of every page formatted by the specified page set.