
ADOBE FRAMEMAKER 10
MIF Reference
25
•
Indicate the position of the table in the text flow by using an
ATbl
statement. The
ATbl
statement is the place-
holder, or
anchor
, for the table instance. It refers to the table instance’s unique ID.
•
Specify the table format by using a
TblFormat
statement. Formats can be named and stored in the Table Catalog,
which is defined by a
TblCatalog
statement, or locally defined within a table.
Creating a table instance
All table instances in a document are contained in a
Tbls
statement. The
Tbls
statement contains a list of
Tbl
state-
ments, one for each table instance. A document can have only one
Tbls
statement, which must occur before any of
the table anchors in the text flow.
The
Tbl
statement contains the actual contents of the table cells in a list of MIF substatements. Like other MIF state-
ments, this list can be quite long. The following is a template for a
Tbl
statement:
<Tbl
<TblID…>
# A unique ID for the table
<TblFormat…>
# The table format
<TblNumColumns…>
# Number of columns in this table--required
<TblColumnWidth…>
# Column width, one for each column
<TblH
# The heading; omit if no heading
<Row
# One Row statement for each row
<Cell…>
# One statement for each cell in the row
>
# end of Row
<TblBody
# The body of the table
<Row…>
# One for each row in body
>
# end of TblBody
<TblF
# The footer; omit if no footer
<Row…>
# One for each row in footer
>
# end of TblF
>
# end of Tbl
The
TblID
statement assigns a unique ID to the table instance. The
TblFormat
statement provides the table format.
You can use the
TblFormat
statement to apply a table format from the Table Catalog, apply a format from the catalog
and override some of its properties, or completely specify the table format locally. Because the tables in a document
often share similar characteristics, you usually store table formats in the Table Catalog. Table instances can always
override the applied format.
The
TblNumColumns
statement specifies the number of columns in the table instance. It is required in every table.
The
TblH
,
TblBody
, and
TblF
statements contain the table heading, body, and footer rows. If a table does not have
a heading or footing, omit the statements.
Here’s an example of a simple table that uses a default format from the Table Catalog. The table has one heading row,
one body row, and no footing rows:
You can use the following MIF statements to create this simple table:
<MIFFile 8.00>
<Tbls
<Tbl
<TblID 1>
# ID for this table
<TblTag `Format A'>
# Applies format from Table Catalog
<TblNumColumns 2>
# Number of columns in this table
<TblColumnWidth 2.0">
# Width of first column
<TblColumnWidth 1.5">
# Width of second column
Coffee
Price per Bag
Brazil Santos
$455.00