Header and Footer Commands

 

The RH (Running Header) and RF (Running Footer) commands are the basic codes that set up a header and a footer. These codes can be entered on the action line and they can be viewed and edited in codes view. Inside of the RH or RF commands will be a series of other commands that define the way the header and/or footer will look on screen (in page layout view) and when printed.

 

To use the action line to create a simple header or footer with text that is left aligned:

 

1Place the cursor at the top of the first page of the document, before any typing, spaces or carriage returns. If you want the header or footer to start on the second page (or a subsequent page), place the cursor at any point after the beginning of the previous page and before the beginning of the page that will be the first page to have the header or footer.
2Press F9
3Type one of the following commands (commands can be entered in either upper case or lower case), followed by a space and then the text that you wish to use in the header.
rha (running header, all pages)
rho (running header, odd pages)
rhe (running header, even pages)
rh (running header, all pages) The program will assume that the header should appear on all pages and treat rh the same as rha. However, when working in codes view, the 3 letter command (rha) must be used.
rfa (running footer, all pages)
rfo (running footer, odd pages)
rfe (running footer, even pages)
rf (running footer, all pages) The program will assume that the footer should appear on all pages and treat rf the same as rfa. However, when working in codes view, the 3 letter command (rfa) must be used.
4Press F10 to insert the header or footer.

 

The header or footer will be visible in the main document. In Page Layout View, the cursor will change shape when you move it over a header or footer to indicate the presence of the header or footer. You can click on the header or footer at any time to open the header/footer window to add text or other data to the header or footer.

 

In Codes View, the command that you inserted will be visible. If you used the header/footer window to insert or edit a header or footer, you will see other commands addition to the initial RH or RF commands. Additional commands will be inside of the header or footer command ("inside" means after the RH or RF command and before the final closing bracket.) For example, in codes view you might see:

 

«RHA«TW6.4IN»«NJ»«IP»«LJ0»Text of Header«LJ1»«LJ2»«PN»»

 

The above example shows codes for a header that will appear on all pages (RHA). In this header, "Text of the Header" would appear aligned with the left margin and the page number would be aligned with the right margin. Notice that the opening command bracket for the RHA command is the first « and the closing command bracket for the RHA command is the » at the very end. The commands that you see inside the RHA command in the above example are:

 

TW (Text Width) defines the width of the header or footer. In the example above, the text width is 6.5 inches. When you set up a header or footer, the program calculates this value by subtracting the margins from the width of the paper. It is automatically recalculated if you change your margins.
NJ (No Justification) turns off justification.
IP (Indent Paragraph) sets indentation to zero.
LJ (Line Justification) commands (LJ) are used to separate text that is flush left, centered and flush right. Text that is after «LJ0» will be aligned with the left margin. Text that is after «LJ1» will be centered, and text that is after «LJ2» will be right-aligned. The text shown in the above example ("Text of the Header") will be left-justified.
PN (Page Number) inserts a page number. In the above example the «PN» is after «LJ2», so it will be right-aligned.

 

You may also see other commands inside of a RH or RF command. For example, if you have changed the font or increased the font size, you would see a UF (Use Font) or an SZ (Size) command. If you are familiar with these Nota Bene commands, you can enter them on the action line as part of your RH or RF command, or you can enter them in codes view. However, it is easy to make mistakes in entering these codes manually, so most users will find it easier to use the header/footer window.

 

 

See also:

Headers and Footers

Editing in Codes View

Alphabetical List of Commands