
ADOBE FRAMEMAKER 10
MIF Reference
38
Inserting the reference point
The final step in creating a cross-reference is to insert an
XRef
statement at the position in text where the cross-
reference should appear. The
XRef
statement provides the name of the cross-reference format (defined in
XRefFormat
), the source text, and the pathname of the file containing the source:
<Para
<PgfTag `Body'>
<ParaLine
<String `This is a cross-reference to '>
<XRef
<XRefName `Page'>
# Cross-reference format
<XRefSrcText `34126: Heading: My Heading'>
# Source text
<XRefSrcFile `'>
# File containing source
>
# end of XRef
<XRefEnd>
<String `.'>
>
# end of ParaLine
>
# end of Para
The format name must exactly match the name of a format defined in
XRefFormats
. The source text must be unique
and must match the string in the
MText
statement in the corresponding reference point marker. The
XRefSrcFile
statement is only required if the reference source is in a different file from the reference point. It must be a valid MIF
filename (see
“Device-independent pathnames” on page 7
).
You must also supply an
XRefEnd
statement after the
XRef
statement.
How FrameMaker writes cross-references
When FrameMaker writes a cross-reference, it provides the actual text that will appear at the reference point. This
information is not required in a MIF input file. The previous example would be written as follows:
<XRef
<XRefName `Page'>
<XRefSrcText `34126: Heading: My Heading'>
<XRefSrcFile `'>
>
# end of XRef
<String `page'>
# The text that appears in the document;
<Char HardSpace >
# in this case, a page number followed a
<String `1'>
# hard space and the number 1
<XRefEnd>
# End of cross-reference text
If you do include the text of the cross-reference, make sure that the
XRefEnd
statement follows the text. FrameMaker
considers everything between the
XRef
statement and the
XRefEnd
statement to be part of the cross-reference.
Creating variables
In a FrameMaker document, variables act as placeholders for text that might change. For example, many documents
use a variable for the current date. A variable consists of a name, which is how you choose a variable, and a definition,
which contains the text and formatting that appear where a variable is inserted.
FrameMaker provides two kinds of variables: system variables that are predefined by FrameMaker, and user variables
that are defined by the user. System variables contain building blocks that allow FrameMaker to extract certain infor-
mation from the document or the system, such as the current date or the current page number, and place it in text.
Headers and footers frequently use system variables. You can modify a system variable’s definition but you cannot
create new system variables. User variables contain only text and formatting information.
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...