Macro Statements - Adobe FRAMEMAKER 6.0 Manual

Mif reference
Table of Contents

Advertisement

ADOBE FRAMEMAKER 6.0
70
MIF Document Statements
Because Comment statements can be nested within one another, the MIF interpreter examines all
characters following an angle bracket until it finds the corresponding angle bracket that ends the comment.
<Comment - The following statements define the paragraph formats>
<Comment <These statements have been removed:
<Font <FBold> <FItalic>>
>>
The MIF interpreter processes number signs within Comment statements as normal comments, ignoring
the remainder of the line.
<Comment - When a number sign appears within a <Comment> statement,
# the MIF interpreter ignores the rest of the characters in that
# line--including angle brackets < >.
> # End of <Comment> Statement.

Macro statements

MIF has two statements that allow you to define macros and include information from other files.
Although these statements usually appear near the beginning of a MIF file, you need not put them in that
position. However, the MIF interpreter does not interpret a macro that occurs before its definition.
define statement
The define statement creates a macro. When the MIF interpreter reads a MIF file, it replaces the macro
name with its replacement text. A define statement can appear anywhere in a MIF file; however, the macro
definition must appear before any occurrences of the macro name.
Syntax
define (name, replacement)
Creates a macro
Usage
Once a macro has been defined, you can use the macro name anywhere that the replacement text is valid.
For example, suppose you define the following macro:
define (Bold, <Font <FWeight `Bold'>>)
When you use the macro in MIF statements, write <Bold>. The interpreter replaces <Bold> with <Font
<FWeight `Bold'>>. Note that it retains the outer angle brackets in the replacement text.
Note that when you use a macro in a MIF file, you must enclose macro names in brackets to comply with
the MIF syntax (for example, write <Bold> instead of Bold). The MIF parser requires these brackets to
interpret the macro correctly.

Advertisement

Table of Contents
loading

Table of Contents