beautypg.com

Create variables for running headers and footers, Create variables for running headers and, Footers – Adobe InDesign CS4 User Manual

Page 102: Create variables for running, Headers and footers

background image

94

USING INDESIGN CS4

Layout

File Name
This variable inserts the name of the current file into the document. It’s commonly added to the slug area of the
document for printing or used in headers and footers. In addition to Text Before and Text After, you can choose the
following options.

Include Entire Folder Path

Select to include the full folder path with the file name. The standard path conventions for

either Windows or Mac

OS are used.

Include File Extension

Select to include the file name extension.

The File Name variable is updated whenever you save the file with a new name or to a new location. The path or
extension does not appear in the document until it’s saved.

Last Page Number
The Last Page Number type is useful for adding the total number of pages in a document to headers and footers using
the common “Page 3 of 12” format. In this case, the number 12 is generated by the Last Page Number, and it’s updated
whenever pages are added or removed. You can insert text before or after the last page number, and you can specify a
numbering style. From the Scope menu, choose an option to determine whether the last page number in the section
or document is used.

Note that the Last Page Number variable does not count the pages in the document.

Running Header (Paragraph or Character Style)
The Running Header variables insert the first or last occurrence on the page of the text to which the specified style is
applied. If no text on the page is formatted with the specified style, the text from a previous page is used.

Custom Text
This variable is commonly used for inserting placeholder text, or a text string that may need to be changed quickly. For
example, if you’re working on a project that uses a code name for a company, you can create a custom text variable for
the code name. When you are able to use the real company name, you can simply change the variable to update all the
occurrences.

To insert special characters in a text variable, click the triangle to the right of the text box.

Create variables for running headers and footers

By default, the Running Header variables insert the first occurrence (on the page) of the text to which the specified
style is applied.

1 If your content is not already formatted, create and apply the paragraph style or character style for the text you want

to appear in the header (such as a title or heading style).

2 Choose Type > Text Variables

> Define.

3 Click New, and then type a name for the variable.

4 From the Type menu, choose Running Header (Paragraph Style) or Running Header (Character Style).

5 Specify the following options:

Style

Choose the style to display in your header or footer.

Use

Decide whether you want the first or last occurrence of the style that’s applied on the page. First On Page is defined

as the first paragraph (or character) that begins on a page, not one that begins on a previous page and ends on the

Updated 18 June 2009