Справочник Пользователя для Adobe framemaker 6.0

Скачать
Страница из 323
46
ADOBE FRAMEMAKER 6.0
 Using MIF Statements
<TextFlow
<TFTag `A'>
<TFAutoConnect Yes>
<Para
<TextRectID 2>
<PgfTag `Body'>
<ParaLine
<String `This appears on a body page within a text flow'>
<String ` tagged A.'>
> # end of ParaLine
> # end of Para
> # end of TextFlow
Why one body page?
The method you use to create body pages is different from the method that a FrameMaker product uses 
when it writes a MIF file. When a FrameMaker product writes a file, it knows where each page break occurs 
in the file, so it creates a series of Page statements that each contain the text and graphics located on that 
page. When you are importing a document, you do not know where page breaks will fall, so you cannot 
break the document into a series of Page statements. Instead, you simply create one text flow for the entire 
document and link it to a single, empty body page. When the MIF interpreter reads the file, it creates as 
many pages as the document requires and gives each page the background specified by the master page.
Creating a double-sided custom layout
If you import a two-sided document, you might need to specify different page layouts for right and left 
pages. For example, a document might have a wider inside margin to allow extra room for binding. You 
can do this in a MIF file by creating and linking a second master page and a second body page. As with a 
single-sided layout, all the document’s text is in one text flow. When the MIF interpreter reads the file, it 
adds alternate left and right body pages to the document. You can control whether the document starts 
with a right page or a left page by using the DParity statement.
For an example of a document with left and right master pages, see the sample file dblpage.mif
Creating a first master page
In addition to left and right master pages, you can create custom master page layouts that you can apply to 
body pages. For example, some books have a special layout for the first page in a chapter.
In a MIF file, you can create as many master pages as you need, but you cannot apply all of them to the 
appropriate body pages. You can only apply a left page, a right page, and one additional custom master page 
to the body pages. Furthermore, you can only link the custom master page to the first page in a document. 
When you are importing a document into a FrameMaker product, you do not know how much text the 
MIF interpreter will put on a page; you can only determine where the first page begins. When the inter-
preter reads the MIF file, it applies the custom master page layout to the first page in the document. For 
each subsequent page, it uses the DParity and DTwoSides statements to determine when to add a left page 
and when to add a right page.