
ADOBE FRAMEMAKER 10
MIF Reference
40
>
# end of Variable
<String `pages.'>
>
# end of ParaLine
>
# end of Para
The
VariableName
string must match the name of a variable format defined in the
VariableFormats
statement.
Variables are subject to the following restrictions:
•
You cannot place any variable in a tagged text flow on a master page.
•
The system variable
Current Page
#
and the system variables for running headers and footers can only appear
in untagged text flows on a master page.
•
The system variables Table Continuation and Table Sheet can only appear in tables.
Creating conditional text
You can produce several slightly different versions of a document from a single conditional document. In a condi-
tional document, you use condition tags to differentiate conditional text (text that is specific to one version of the
document) from unconditional text (text that is common to all versions of the document).
In a MIF file, you create a conditional document as follows:
•
Create the condition tags to be used in the document and specify their format via
ConditionCatalog
and
Condition
statements.
•
Apply one or more condition tags to the appropriate sections of the document via
Conditional
and
Uncondi-
tional
statements.
•
Show or hide conditional text by using the
CState
statement.
Creating and applying condition tags
In MIF, all condition tags are defined in a
ConditionCatalog
statement, which contains one or more
Condition
statements. A
Condition
statement specifies the condition tag name, the condition indicators (how conditional text
appears in the document window), a color, and a state (either hidden or shown).
For example, the following statements create a Condition Catalog with two conditional tags named Summer and
Winter:
<ConditionCatalog
<Condition
<CTag `Summer'>
# Condition tag name
<CState CHidden >
# Condition state (now hidden)
<CStyle COverline >
# Condition indicator
<CColor `Blue'>
# Condition indicator
>
# end of Condition
<Condition
<CTag `Winter'>
<CState CShown >
# This condition is shown
<CStyle CUnderline >
<CColor `Red'>
>
# end of Condition
>
# end of ConditionCatalog
To mark conditional and unconditional passages within document text, use
Conditional
and
UnConditional
statements as shown in the following example:
<Para
<ParaLine
<String `Our company makes a full line of '>