
ADOBE FRAMEMAKER 10
MIF Reference
33
Creating a simple page layout
If you want some control of the page layout but do not want to create master pages, you can use the
Document
substatements
DPageSize
,
DMargins
, and
DColumns
to specify the page size, margins, and number of columns in
the text frame in the document. The MIF interpreter uses this information to create master pages and body pages.
These statements correspond to the Normal Page Layout options.
The following example is in the sample file
columlay.mif
:
<MIFFile 8.00>
# Hand generated
<Document
<DPageSize 7.5" 9.0">
# Set the page size.
<DMargins 2" 1" .5" .5">
# Set the margins.
<DColumns 1>
# Set the number of columns in the default
# text frame.
<DTwoSides No>
# Set document to single-sided.
>
# end of Document
<TextFlow
# Document text is in this text flow.
<TFTag `A'>
# Make this a tagged text flow.
<TFAutoConnect Yes>
# Automatically connect text frames.
<Para
<ParaLine
<String `This paragraph appears on a body page within a'>
<String ` text flow tagged A.'>
>
# end of ParaLine
>
# end of Para
>
# end of TextFlow
# End of MIFFile
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 8.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'>