Adobe framemaker 6.0 User Manual

Page of 323
92
ADOBE FRAMEMAKER 6.0
MIF Document Statements
Determining table width
When a FrameMaker product writes MIF files, it uses TblColumnWidth in the Tbl statement to specify 
column width. However, filters that generate MIF files can use other statements to determine the table 
width. 
The table example in “Creating an entire table” on page 241 shows several ways to determine column 
width. 
Calculating proportional-width columns
MIF uses this formula to calculate the width of proportional-width columns: 
The arguments have the following values:
For example, suppose you want a four-column table to be 7 inches wide, but only the last three columns to 
have proportional width.
The columns have the following widths:
Column 1 has a fixed-width value of 1": <TblColumnWidth 1">
Column 2 has a proportional value of 2: <TblColumnWidthP 2>
Column 3 has a proportional value of 1: <TblColumnWidthP 1>
Column 4 has a proportional value of 1: <TblColumnWidthP 1>
Available width for proportional columns (PWidth) is 7" – 1" or 6".
Sum of all proportional values (PTotal) is 2 + 1 + 1 or 4.
Width for Column 2 is (2/PTotal) x PWidth = (2/4) x 6" or 3".
Width for Column 3 or Column 4 is (1/PTotal) x PWidth = (1/4) x 6" or 1.5".
This method
Uses these statements
To do this
Fixed width
TblColumnWidth
Give a fixed value for column’s width (see page 86)
Shrink-wrap
TblColumnWidthA
Fit a column within minimum and maximum values (see 
page 86)
Restricted
TblColumnWidthA and CellAffectsColumn-
WidthA
Use particular cells to determine column width (see 
page 91)
Proportional
TblColumnWidthP
Create a temporary value for a column width when filter-
ing proportional-width columns from another applica-
tion; the MIF interpreter converts the value to a fixed 
width (see page 86 an“Calculating proportional-width 
columns,” next)
Equalized
EqualizeWidths and TblColumnNum
Apply the width of the widest column to specified col-
umns in the same table (see page 89)
n Value 
of 
TblColumnWidthP
PTotal 
Sum of the values for all TblColumnWidthP statements in the table
PWidth 
Available space for all proportional columns (TblWidth – the sum of fixed-width columns)
n
PTotal
-----------------
PWidth
×