
ADOBE FRAMEMAKER 10
MIF Reference
12
This example is in the sample file
hello.mif
. To see how FrameMaker provides defaults for a document, open this
file in FrameMaker. Even though the MIF file does not specify any formatting, FrameMaker provides a default
Paragraph Catalog and Character Catalog. In addition, it provides a right master page, as well as many other default
properties.
Save this document as a MIF file and open the FrameMaker-generated MIF file in a text editor or in FrameMaker as
a text file. (For information on how to save and open MIF files, see
“Opening and saving MIF files” on page 9
.)
You’ll see that the MIF interpreter has taken the original 6-line file and generated over 1,000 lines of MIF statements
that describe all the default objects and their properties. To see the actual text of the document, go to the end of the
file.
This example demonstrates an important point about MIF files. Your MIF file can be very sparse; the MIF interpreter
supplies missing information. Most documents are not this simple, however, and require some formatting. The
following sections describe how to add additional document components, such as paragraph and character formats,
a table, and custom page layouts, to this minimal MIF file.
Creating and applying paragraph formats
In a FrameMaker document, paragraphs have formatting properties that specify the appearance of the paragraph’s
text. A paragraph format includes the font family and size, indents, tab stops, the space between lines in a paragraph,
and the space before and after a paragraph. In a FrameMaker document, the end of a paragraph is denoted by a single
carriage return. You control the amount of space above and below the paragraph by modifying the paragraph’s
format, not by adding extra carriage returns.
In a FrameMaker document, you store paragraph formats in a Paragraph Catalog and assign a
tag
(name) to the
format. You can then apply the same format to many paragraphs by assigning the format tag to the paragraphs. You
can also format a paragraph individually, without storing the format in the Paragraph Catalog. Or, you can assign a
format from the Paragraph Catalog and then override some of the properties within a particular paragraph. Formats
that are not stored in the Paragraph Catalog are called
local formats
.
Creating a paragraph
In a MIF file, paragraphs are defined by a
Para
statement. A
Para
statement contains one or more
ParaLine
state-
ments that contain the lines in a paragraph; the actual text of the line is enclosed in one or more
String
statements:
<Para
# Begin a paragraph
<ParaLine
# Begin a line within the paragraph
<String `Hello World'># The actual text of this document
>
# End of ParaLine statement
>
# End of Para statement
The
Para
,
ParaLine
, and
String
statements are the only required statements to import text. You could use this
example to import a simple document into FrameMaker by placing each paragraph in a
Para
statement. Break the
paragraph text into a series of
String
statements contained in one
ParaLine
statement. It doesn’t matter how you
break up text lines within a
Para
statement; the MIF interpreter automatically wraps lines when it reads the MIF file.
Some characters must be represented by backslash sequences in a MIF string. For more information, see
“Character
set in strings” on page 7
.
Creating a paragraph format
Within a FrameMaker document, you define a paragraph format by using the Paragraph Designer to specify the
paragraph’s properties. In a MIF file, you define a paragraph format by using the
Pgf
statement.
The
Pgf
statement contains a group of substatements that describe all of a paragraph’s properties. It has the following
syntax:
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...