
ADOBE FRAMEMAKER 10
MIF Reference
34
<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 dimen-
sions that are exactly the same as the text frame on the master page. Give the text frame a unique ID:
<Page
<PageType BodyPage>
<PageBackground `Default'>
<TextRect
<ID 2>
# This text frame has a unique ID.
# The body page dimensions match those of the
# master page.
<ShapeRect 2" 1" 5" 7.5">
<TRNumColumns 1>
# The column layout must also match.
<TRColumnGap 0.0">
>
# end TextRect
>
# end Page
If the dimensions (specified by the
ShapeRect
statement) and column layout (specified by the
TRNumColumns
and
TRColumnGap
statements) of the master page and body page do not match, the body page will not use the page layout
from the master page. Instead, the body page will use the page layout defined for the body page.
To create the text flow for the master page
The text flow for the master page is not contained in the
Page
statement; instead, it is contained in a
TextFlow
statement that is linked to the text frame on the master page. The
Page
statements must come before any
TextFlow
statements.
Link the text flow to the master page’s text frame by using the
TextRectID
statement to refer to the text frame’s
unique ID:
<TextFlow
<TFTag `A'>
# The text flow must be tagged.
<TFAutoConnect Yes>
# Autoconnect must be turned on.
<Para
<ParaLine
<TextRectID 1>
# Refers to text frame ID on master page.
>
# end of ParaLine
>
# end of Para
>
# end of TextFlow
The text flow for the master page must be empty. Be sure to give the text flow the same flow tag that you give the text
flow for the body page and to turn on the autoconnect feature.
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...