Adobe framemaker 6.0 User Manual

Page of 323
52
ADOBE FRAMEMAKER 6.0
 Using MIF Statements
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 conditional 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  and specify their format of via ConditionCatalog and Condition statements.
Apply one or more condition tags to the appropriate sections of the document via Conditional and 
Unconditional 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