Creating Headers and Footers
- Introduction
- Choosing a Layout Method
- Setting up Basic Page Layout Using Styles
- Changing Page Margins
- Using Columns to Define the Page Layout
- Using Frames for Page Layout
- Using Tables for Page Layout
- Using Sections for Page Layout
- Updating Links
- Creating Headers and Footers
- Numbering Pages
- Preliminaries: Fields
- Preliminaries: Insert and Format a Header
- Simple Page Numbering
- Combining Header Text and Page Number
- Changing the Number Format
- Numbering the First Page Something Other than 1
- Numbering Pages by Chapter
- Restarting Page Numbering
- Problems with Restarting Page Numbering
- Numbering Portrait and Landscape Pages
- Defining Borders and Backgrounds
Headers are portions of a document that always appear at the top of a page; footers appear at the bottom of a page. Typically, headers display the title or chapter name of a document.
In AOO, headers are specified by page styles; therefore, when inserted, all the pages with the same page style will display the same header. Chapter 7 (Working with Styles) describes how to format a header as part of the page style formatting. For the purpose of this example, we will insert a header in the Default pages using manual formatting. Select from the main menu Insert → Header → [Page Style]. The submenu lists the page styles used in your document. In addition, the submenu includes the entry All, which activates headers on all the pages of the document regardless of their page style.
For our example, select the Default menu item to activate the headers only on the pages that use the Default page style. Similarly, to insert a footer, choose Insert → Footer.
Depending on which option you choose, an area such as that in Figure 35 will appear at the top or bottom of the page. In this area you can enter text and graphics that will appear on every page.
Items such as document titles, chapter titles, and page numbers, which often go into headers and footers, are best added as fields. That way, if something changes, the headers, and footers are all updated automatically. Fields are covered in Chapter 14 (Working with Fields), but one example here may be useful. To insert the document title into the header:
- Select File → Properties → Description, enter a title for your document in the Title area, and click OK to close the dialog box.
- Add a header (Insert → Header → Default).
- Place the cursor in the header part of the page.
- Select Insert → Fields → Title. The title should appear on a gray background (which does not show when printed and can be turned off).
- To change the title for the whole document, choose File → Properties → Description.