Macro Statements - Adobe FRAMEMAKER 10 User Manual

Hide thumbs Also See for FRAMEMAKER 10:
Table of Contents

Advertisement

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
statement creates a macro. When the MIF interpreter reads a MIF file, it replaces the macro name with
define
its replacement text. A
define
appear before any occurrences of the macro name.
Syntax
name
replacement
define (
,
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
. Note that it retains the outer angle brackets in the replacement text.
`Bold'>>
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
correctly.
include statement
The
statement reads information from other files. It is similar to an
include
When the MIF interpreter reads a MIF file, it replaces the
An
statement can appear anywhere in a MIF file. However, make sure that the contents of the included file
include
appear in a valid location when they are read into the MIF file.
Syntax
pathname
include (
)
Usage
The
argument specifies a UNIX-style pathname, which uses a slash (/) to separate directory names (for
pathname
example,
/usr/doc/template.mif
specifying absolute pathnames:
For Windows versions, start an absolute pathname with the drive name. For example, to include the file
from the directory
myfile.doc
an absolute path with a slash (/).
If you specify a relative pathname, the MIF interpreter searches for the file to include in the directory or folder that
contains the file being interpreted. In UNIX versions of FrameMaker, the MIF interpreter also searches the
and the
$FMHOME/fminit
statement can appear anywhere in a MIF file; however, the macro definition must
Creates a macro
)
<Bold>
instead of
). The MIF parser requires these brackets to interpret the macro
<Bold>
Bold
Reads in a file
). For the Windows version of FrameMaker, use the following guideline for
on the
drive, specify the pathname
mydir
c:
$FMHOME/fminit/filters
. The interpreter replaces
#include
statement with the contents of the included file.
include
c:/mydir/myfile.doc
directories for a file with a relative pathname.
ADOBE FRAMEMAKER 10
MIF Reference
with
<Bold>
<Font <FWeight
statement in a C program.
. Don't start
56

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents