24.3.3.2 Specifying different header and footer counts for selected tables
You can override the default number of header columns, header rows, or footer rows with [TableAccess] settings; for example:
; table ID = method list (overrides default in [Tables]); can
; include HColsN and HRowsN, where N is the number of cols or rows
; to make td -> th (overrides TableHeaderCols and TableHeaderRows),
; and FRowsN to override TableFooterRows.
These [TableAccess] settings have the following effects:
Treats cells in the first
N columns (counting from the left)
as row headers; tags the cells <th> if
[Tables]UseTbHeaderCode=Yes. |
|
Treats cells in the first
N rows (counting from the top) as
column headers; tags the cells <th> if
[Tables]UseTbHeaderCode=Yes. |
|
Treats the last N rows (counting from the bottom) as footer
rows; wraps them in a <tfoot>...</tfoot> element if [Tables]HeadFootBodyTags=Yes. |
You could use these settings to specify the structure of every table in your document. However, if all or most of the tables in your document happen to need HCols1 (for example), it is easier to specify [Tables]TableHeaderCols=1, and use the [TableAccess] settings only for exceptions.
If [Tables]UseTbHeaderCode=No (the default setting), even if you specify HColsN or HRowsN, the affected cells are tagged <td> instead of <th>; however, all Mif2Go settings for header cells work just as though the cells were tagged <th>.
> 24 Converting tables to HTML > 24.3 Specifying table structure > 24.3.3 Identifying table headers and footers > 24.3.3.2 Specifying different header and footer counts for selected tables