Adobe FRAMEMAKER 6.0 Manual page 92

Mif reference
Table of Contents

Advertisement

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.
This method
Uses these statements
Fixed width
TblColumnWidth
Shrink-wrap
TblColumnWidthA
Restricted
TblColumnWidthA and CellAffectsColumn-
WidthA
Proportional
TblColumnWidthP
Equalized
EqualizeWidths and TblColumnNum
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:
n
PTotal
PWidth
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".
Value of TblColumnWidthP
Sum of the values for all TblColumnWidthP statements in the table
Available space for all proportional columns (TblWidth – the sum of fixed-width columns)
To do this
Give a fixed value for column's width (see page 86)
Fit a column within minimum and maximum values (see
page 86)
Use particular cells to determine column width (see
page 91)
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 and "Calculating proportional-width
columns," next)
Apply the width of the widest column to specified col-
umns in the same table (see page 89)
n
---------------- -
PTotal
ADOBE FRAMEMAKER 6.0
92
MIF Document Statements
PWidth

Advertisement

Table of Contents
loading

Table of Contents