Creating headers and footers
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.
To insert a header, click Insert > Header > Default (or the page style, if not Default) as shown below.
Similarly, to insert a footer, choose Footer.
Depending on which option you choose, an area will appear at the top or bottom of the page where you can enter text. This text will appear at the top or bottom of 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.
Here is one common example. 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.
Fields are covered in detail in Chapter 14 (Working with Fields).
Portrait headers on landscape pages
When you define a header and footer on a landscape page, they will be aligned with the long side of the page. If your landscape pages are going to be inserted between portrait pages, you might want the headers and footers to be on the short sides of the landscape pages, so the final printed product looks like the contents of the landscape pages have been rotated 90 degrees on portrait pages.
You can set up portrait headers and footers on landscape pages by using a trick involving frames. These are a bit tedious to set up, but once you have done so, you can copy and paste them to other landscape pages. There does not appear to be a way to make this part of the landscape page style.
To set up portrait headers and footers on landscape pages:
- Calculate the required margins so the text area of the landscape page is the same size as the text area on the portrait pages, taking into account the space for headers and footers on the portrait pages. For example, this book uses the margins shown in the following table. The landscape right and left margins are 1 cm larger than the portrait top and bottom margins, respectively. This difference accounts for the extra space used by the portrait header and footer (0.5 cm for the height of the header or footer and a 0.5 cm gap between the header or footer and the main text).
- Create the landscape page style.
- Measure the distance from the upper and left edges of the page to the upper left-hand corner of the space where you want the footer to appear. Measure the width and length of the space the footer will occupy (to match footers on portrait pages).
- In a blank paragraph in the text, type the footer text or insert fields such as the page number or the chapter number and name—to match the footer text and fields on the portrait pages. Assign the Footer style to this paragraph so the typeface, font size, and tab settings match those of the footers on the portrait pages.
- Select the text (including the fields) you just entered. Choose Format > Character. On the Character dialog box, choose the Position tab and set Rotation / Scaling to 270 degrees (counterclockwise). Click OK.
- With the text still selected, choose Insert > Frame. In the Frame dialog box, choose the Type tab and enter the width, height, and horizontal and vertical position for the footer.
- If your footer has a line above the text, on the Borders page, select a right border and specify the line width and spacing to the frame's contents.
- Click OK to save these settings. The footer should now appear in the required position and orientation. Repeat these steps (using appropriate measurements) to set up a portrait header on the landscape page.
|Left (inner) margin
|Right (outer) margin
|Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).