Adobe framemaker 6.0 Manuale Utente

Pagina di 323
48
ADOBE FRAMEMAKER 6.0
 Using MIF Statements
Creating cross-references
In a FrameMaker document, you can create cross-references that are automatically updated. A cross-
reference can refer to an entire paragraph or to a particular word or phrase in a paragraph. The text to 
which a cross-reference points is called the reference source; the actual location of the cross-reference is the 
reference point.
The format of a cross-reference determines its appearance and the wording. Cross-reference formats 
include building blocks, instructions to a FrameMaker product about what information to extract from the 
reference source. A common building block is <$pagenum>, which a FrameMaker product replaces with 
the page number of the reference source.
Within a FrameMaker document, you insert and format cross-references by choosing Cross-Reference 
from the Special menu. In a MIF file, you create a cross-reference as follows:
Create the format of cross-references by using XRefFormats and XRefFormat statements.
Insert a marker at the reference source by using a Marker statement.
Insert the reference point by using an XRef statement.
Creating cross-reference formats
The cross-reference formats for a document are defined in one XRefFormats statement. A document can 
have only one XRefFormats statement. 
The XRefFormats statement contains one or more XRefFormat statements that define the cross-reference 
formats. A cross-reference format consists of a name and a definition.
<XRefFormats
<XRefFormat
<XRefName `Page'>
<XRefDef `page\x11 <$pagenum\>'>
> # end of XRefFormat
> # end of XRefFormats
The name can be any string allowed in a MIF file (see “Character set in strings” on page 13). In this example, 
a nonbreaking space (\x11) appears between the word “page” and the page number. Each cross-reference 
format must have a unique name; names are case-sensitive. The cross-reference definition contains text 
and cross-reference building blocks. See your user’s manual or the online Help system for a list of building 
blocks.
Inserting the reference source marker
To mark the location of the reference source, insert a Marker statement at the beginning of the reference 
source. The following example creates a cross-reference to a heading: