Using Headers and Footers in Basic Documents

Headers and footers, the text areas that appear at the top and bottom of a page, contain information that runs from page to page, such as page number, date, the title of the current page heading, copyright information, and notes about confidential and proprietary information.

Usually when you enter information into headers and footers, the information repeats automatically as new pages are created. If you are using alternating left and right pages, each can have its own headers and footers, so that all right-page headers and footers are the same, as are all left-page headers and footers.

Note

To use more complex headers and footers in books and longer documents, see Headers and Footers in Books on page 319.


Setting Up Headers and Footers, Consistent or Different on Each Page

Header and footer setup is part of the window you get from choosing Format > Page.

  1. Choose Format > Page.

  2. Click the Header tab, make the appropriate entries, then click the Footer tab. Use Figure 7-38 and Figure 7-39 for guidance. Figure 7-40 shows example headers and explains the window settings further.

    Figure 7-38. The Page Style window, Header tab

    graphics/07fig38.jpg

    Figure 7-39. The Page Style window, Footer tab

    graphics/07fig39.jpg

    Figure 7-40. Example headers

    graphics/07fig40.jpg

Figure 7-40 shows example headers and explains the window settings further.

Header and footer margins

When you insert headers and footers, they don't run beyond the margin settings of the document. Instead, they automatically adjust the main text area of the document. You cannot extend the width of headers and footers beyond the document's page width.

Adding Content to Headers and Footers

Since headers and footers are text boxes, you can include anything in a header or footer that you can include in the main document. Most often you'll probably want to include such information as date, page number, author, filename, and section headings. Instead of typing this type of information in manually, you can insert fields that contain this information.

Adding Static Text and Objects to Headers and Footers

Headers and footers can take whatever you throw at'emin general, just consider them normal document area.

Inserting Fields Such as Date and Page In Headers and Footers

Note

You can also use AutoText to insert predefined data. See Creating and Inserting AutoText on page 180.


Fields contain information such as page numbers , dates, and section headings that are generated automatically by Writer. For more information on fields, see Creating and Inserting Predefined Fields for Headers and Footers.

  1. Click in the exact spot in the header or footer where you want to insert a field.

  2. In the toolbar, click and hold down the Insert Fields tool, and choose the field you want to insert. (You can also choose Insert > Fields.)

    If you don't see the field you want, choose Other, and select the field you want to use in the Fields window. For definitions of the fields in this window, see the online help.

    graphics/07inf07.jpg

Creating and Inserting Predefined Fields for Headers and Footers

Fields are bits of information, such as page numbers, dates, document headings, cross-references, index markers, database fields, and a host of other information that Writer generates or that you can insert. For example, you can insert a field into a document that shows the date that the document was last modified, or you can insert page numbering to show the current page number along with the total page count, as shown in Figure 7-41.

Figure 7-41. Page Numbers and Page Count fields

graphics/07fig41.gif

You can insert fields into any part of a document where you can enter text, and the field text takes on the properties of the paragraph style it's inserted into. You can also apply character formats to fields.

Page Numbering on page 322 shows specific uses of fields in long documents and books.

Changing the Date Format for the Date Field

When you choose Insert > Fields > Date, it's always inserted in MM/DD/YY format. We don't know how to change this default format, but you can do either of the following:

  • You can change the format each time by double-clicking the field and selecting a different format in the Edit Fields window.

  • Select the inserted date field after you've correctly formatted it, then select it and create a new AutoText entry. See Creating and Inserting AutoText on page 180.

Turning Off the Gray Background

Any time you insert a field or any other element that's generated by Writer, it is displayed with a nonprinting gray background by default. If you don't want to see the gray background on-screen, choose View > Field Shadings.

However, we recommend leaving field shading on, because it helps you distinguish between what you enter as text and what is generated by Writer.

Advanced Use of "Other" Fields

Additional fields, based on conditions and other more complex functions, are used in data source connections, conditional formatting, and other purposes. You don't need to know about them now just for basic headers and footers; when you want to learn more, see the section in the data sources chapter titled Setting Up Stored Data in Fields and AutoText on page 857.

Formatting Headers and Footers

Writer provides the following default header and footer paragraph styles: Header, Header left, Header right, Footer, Footer left, and Footer right. The left and right styles are used when your document is set up to alternate between left and right pages. You can format headers and footers manually, or you can change any of their styles. If you need help with formatting, see Chapter 7, Formatting Documents , on page 199.

Removing Headers and Footers

You can remove headers and footers on the fly by choosing Insert > Header (or Insert > Footer) and selecting the page style that has a check mark next to it. You can also turn headers and footers off within each page style (see Creating Page Styles on page 257).

Using Different Headers and Footers Within a Document

Every time you want new content for the header or footer, just make a new page stylepage styles control what header and footer are used.

  1. First, make sure you've read Setting Up Headers and Footers, Consistent or Different on Each Page on page 228.

  2. Then see Creating Page Styles on page 257 to name and create the style itself such as goodfooter and badfooter .

  3. To apply your page styles, see Applying and Switching Page Styles on page 259. This section tells you how to switch from one style to another, including restarting page numbers.

  4. Put the appropriate content in the headers and footers. If you want the content to change, use different variables or text in the headers and footers of each new page style.



OpenOffice. org 1.0 Resource Kit
OpenOffice.Org 1.0 Resource Kit
ISBN: 0131407457
EAN: 2147483647
Year: 2005
Pages: 407

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net