Adobe framemaker 6.0 User Manual

Page of 323
44
ADOBE FRAMEMAKER 6.0
 Using MIF Statements
Creating a single-sided custom layout
If the document that you’re importing needs a custom master page, you must specify a custom page layout. 
For example, a document might need a master page for background graphics.
To create a custom layout for a single-sided document, you do the following:
Create a right master page.
Create a single, empty body page.
Create an empty, tagged text flow that is linked to the master page.
Create a tagged text flow that is linked to the body page and contains all the document’s text.
The MIF code shown in this section is also in the sample file snglpage.mif
To create the master page
To create a master page layout, use the Page statement to create the page and use the TextRect statement to 
create the text frame.
To specify the number of text columns in the text frame, use the TRNumColumns statement. By default, 
if the text frame’s specification does not include this statement, the text frame has only one column. 
This example sets up a right master page with a text frame containing one text column:
<MIFFile 6.00> # Hand generated
<Document
<DPageSize 7.5" 9.0">
# Set the document page size.
<DTwoSides No>
# Make this a single-sided document.
> # end of Document
<Page
# Create a right master page.
<PageType RightMasterPage>
<PageTag `Right'>
<TextRect
# Set up a text frame.
<ID 1>
# Give the text frame a unique ID.
<Pen 15>
# Set the pen style.
<Fill 15>
# Set the fill pattern (none).
<ShapeRect 2" 1" 5" 7.5"> # Specify the text frame size.
<TRNumColumns 1>
# Specify number of text columns.
<TRColumnGap 0.0">
# Specify gap between text columns.
> # end of TextRect
> # end of Page
The ID statement assigns a unique ID number to this text frame. You must give text frames a unique ID in 
a MIF file; other objects that require unique IDs are anchored graphic frames and table instances.
To create an empty body page
To create the body page, use the Page statement. Then use the TextRect statement to create a text frame 
with dimensions that are exactly the same as the text frame on the master page. Give the text frame a unique 
ID: