About Arbortext Styler > Creating Headers and Footers > Creating a Header or Footer
  
Creating a Header or Footer
To create a header or footer, create a Page Region object and define its position as a header or footer for the page in the Position category. You may then add text or graphical content as required.
To be identified as header or footer, regions must have certain characteristics:
Header
Same left and right margins as the page body
Does not overlap the page body
Top aligned
Footer
Same left and right margins as the page body
Does not overlap the page body
Bottom aligned
Once you have created the page region you can reference it from the relevant page set by including it in one of the page types configured for the page set. In this way you can ensure that different pages in a page set display different page layouts, including headers or footers.
Example: Creating Headers and Footers for a Single-Sided Page Set
The example given below defines different header and footer page region objects for the first and body pages of a single sided page set. Refer to Creating a Page Set for information on how to set up a page set.
The headers and footers described in this example only contain text. You can also include graphics in headers or footers.
1. Before creating your header and footer page regions, ensure that the page types that will provide page layout for the first page and the body pages of your page set exist in the Page Types list The Page Types list icon — a blank page with the top right corner turned down.
Configure your page set so that the relevant page types are selected in the Right and left pages and First page fields in the Page types category. You will need to deselect the Double sided option.
2. In the Page Regions list The Page Regions list icon - a blank page with a red text box at the bottom, use the Insert > Page Region menu option to create two new page region objects. Name them firstpage—header and bodypage-header.
3. Select firstpage-header, then navigate to the Position category of the properties area.
4. Set the fields in the category to define the size of the page region and place it at the top of the page as a header. For example, for a Letter sized page:
Region reference point: Top Left
X position: 1in from page left
Y position: 0.5in from page top
Width: 6.5in absolute measure
Height: 1in absolute measure
Here you have created a 1in high region, placed 1in from the left and right edges of the page and 0.5in from the top of the page.
5. Navigate to the Text category. In the Type field, select Generated to indicate you want the header to display text that is not the main content of the document.
6. Choose Insert > Generated Content to create a new Generated Content object.
Use the Edit button to open the Generated Text Editor. Add the header text First page header in the center cell of the Generated Content object and format it as required.
Navigate back to the Text category of the Page Regions list. Choose the Generated Content object you have just created from the list in the Generated Content field. Add any alignment and padding requirements in the Vertical alignment and Interior padding fields.
7. Navigate to the Page Types list. Select the Page Type object that will provide page layout for the first page of your page set. Use the Add button in the properties area to add the firstpage-header page region to the list in the Page region (front to back) field. Use the up and down arrows to move the region to the required place in the list to ensure it is output in the correct order with other page regions.
You have now specified that the page region firstpage-header will be output as a header on the first page of your page set.
8. Repeat steps 3–7 for the bodypage-header page region, giving it the text content Header for body pages.
Assign the bodypage-header page region to the page type you selected to provide page layout for the right and left pages of your page set.
You have now specified that the page region bodypage-header will be output as a header on the body pages of your page set.
9. Navigate back to the Page Regions list and create two more new page region objects. Name them firstpage-footer and bodypage-footer.
10. Select firstpage-footer, then navigate to the Position category in the properties area.
11. Set the fields in the category to define the size of the page region and place it at the bottom of the page as a footer. For example, for a Letter sized page:
Region reference point: Bottom right
X position: 1in from page right
Y position: 0.5in from page bottom
Width: 6.5in absolute measure
Height: 1in absolute measure
Here you have created a 1in high region, placed 1in from the left and right edges of the page, and 0.5in from the bottom of the page.
12. Navigate to the Text category. In the Type field, select Generated to indicate you want the footer to display text that is not from the document source.
13. Choose Insert > Generated Content to create the Generated Content object that defines the footer text.
Create the footer text First page footer in the right cell of the Generated Content object and use the Insert > Page Number menu option to output the page number in the left cell. Format both fields as required.
Navigate back to the Text category of the Page Regions list. Choose the Generated Content object you have just created from the list in the Generated Content field. Add any alignment and padding requirements in the Vertical alignment and Interior padding fields.
14. Navigate to the Page Types list. Select the Page Type object that will provide page layout for the first page of your page set. Add the firstpage-footer page region to the list in the Page region (front to back) field. Use the up and down arrows to move the region to the required place in the list to ensure it is output in the correct order with other page regions.
Refer to Page Types List for information on region order.
You have now specified that the page region firstpage-footer will be output as a footer on the first page of your page set.
15. Repeat steps 10–14 for the bodypage-footer page region, giving it the text content Footer for body pages.
Assign the bodypage-footer page region to the page type you selected to format the right and left pages of your page set.
You have now specified that the page region bodypage-footer will be output as a footer on the body pages of your page set.
16. Preview your document via the Preview > Print menu option to review these changes. You will see that each element in the document that references your page set displays one header and footer on the first page, then a different header and footer on all subsequent pages. The headers and footers are positioned according to the settings you made for the page regions in the Position category.