
ADOBE FRAMEMAKER 10
MIF Reference
23
Tips
The following hints may help you minimize the MIF statements for paragraph formats:
•
If possible, use the formats in the default Paragraph Catalog (don’t supply a
PgfCatalog
statement). If you know
the names of the default paragraph formats, you can tag paragraphs with the
PgfTag
statement.
•
If you know that a document will use a particular template when it is imported into a FrameMaker document,
you can just tag the paragraphs in the text flow. Don’t create a new Paragraph Catalog in MIF; it’s easier to create
catalogs in FrameMaker document templates.
•
If you need to provide a full Paragraph Catalog in a MIF file, you can still use FrameMaker to ease the task of
creating a catalog. Create a template in FrameMaker, save the template as a MIF file, and include the Paragraph
Catalog in your document. For instructions, see
“Including template files” on page 44
.
Creating and applying character formats
You can define character formats locally or store them in the Character Catalog and apply the formats to text selec-
tions. Creating and applying character formats is very similar to creating and applying paragraph formats as
described in the previous section. Because the two methods are similar, this section just summarizes how to create
and apply character formats.
In a MIF file, the Character Catalog is contained in a
FontCatalog
statement. The
FontCatalog
statement contains
named character formats in a list of
Font
statements. A
FontCatalog
statement looks like this:
<FontCatalog
<Font...>
# Describes a character format
<Font...>
# Describes a character format
>
# end of FontCatalog
A
Font
statement specifies the properties of a character format; these are the same properties specified in the
Character Designer. The
Font
statement is just like the
PgfFont
statement that you use to define the default font in
a paragraph format. See
“PgfFont and Font statements” on page 66
for a complete description of a
Font
statement.
To apply a predefined character format to text, use the
FTag
statement:
<MIFFile 8.00>
# Hand generated
<FontCatalog
<Font
<FTag `Emphasis'>
<FAngle `Italic'>
>
# end of Font
>
# end of FontCatalog
<Para
<PgfTag `Body'>
<ParaLine
<String `You can format characters within a paragraph by '>
<Font
<FTag `Emphasis'>
>
# end of Font
<String `applying'>
<Font
<FTag `'>
>
# end of Font
<String ` a character format from the character catalog.'>
>
# end of ParaLine
>
# end of Para
Remember to include a second
Font
statement to end the scope of the applied character format.
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...