
ADOBE FRAMEMAKER 10
MIF Reference
44
<AttributeValue `val4'>
> # end of DefAttrValues
> # end of DefAttrValuesCatalog
The following statements create a catalog of attributes without values:
<DefAttrValuesCatalog
> # end of DefAttrValuesCatalog
Including template files
When you write an application, such as a filter or a database publishing application, to generate a MIF file, you have
two ways to include all formatting information in the file:
•
Generate all paragraph formats and other formatting information directly from the application.
•
Create a template document in FrameMaker, save it as a MIF file, and include the template file in your generated
MIF file.
It’s usually easier to create a template in FrameMaker than it is to generate the formatting information directly.
To create the template as a MIF file, do the following:
1
Create the template in FrameMaker and save it as a MIF file.
2
Edit the MIF file to preserve the formatting catalogs and the page definitions and delete the text flow.
3
Generate the text flow for your document and use the
include
statement to read the formatting information
from the template.
Creating the template
Create the template document in FrameMaker. Define the paragraph and character formats, table formats, variable
and cross-reference formats, master pages, and any other formatting and page layout information that your
document needs. Generally, a template contains some sample lines that illustrate each format in the document. Save
the completed template as a MIF file. For more information about creating templates, see your user’s manual.
Editing the MIF file
You need to edit the resulting MIF file to extract just the formatting and page layout information.
1
Delete the MIFFile statement.
2
Search for the first body page and locate its TextRect statement.
To find the first body page, search for the first occurrence of
<PageType BodyPage>
. Suppose the first body page
in your MIF file looks like this:
<Page
<Unique 45155>
<PageType BodyPage >
<PageNum `1'>
<PageSize 8.5" 11.0">
<PageOrientation Portrait >
<PageAngle 0.0>
<PageBackground `Default'>
<TextRect
<ID 7>
<Unique 45158>
<Pen 15>
<Fill 15>