Creating headers and footers

From Apache OpenOffice Wiki
Jump to: navigation, search



Inserting headers and footers.

Similarly, to insert a footer, choose Footer.





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:

  1. 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).
  2. Portrait page (right page) Landscape page (right page)
    Top margin 1.5 cm Right margin 2.5 cm
    Bottom margin 1.5 cm Left margin 2.5 cm
    Left (inner) margin 2.8 cm Top margin 2.8 cm
    Right (outer) margin 1.8 cm Bottom margin 1.8 cm
  3. Create the landscape page style.
  4. 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).
  5. Measuring the location and size of the footer frame.
  6. 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.
  7. 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.
  8. Rotating the footer text 270 degrees.
  9. 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.
  10. Defining the size and position of the footer frame.
  11. 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.
  12. Specifying the border position, line width, and spacing to contents.
  13. 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.
Personal tools