6.9 Specifying formats and options for tables

To specify a default format for each DITA table type:

[TableOptions]
; NormalTableFormat = format for normal tables without outputclass
NormalTableFormat = NormalTable
; SimpleTableFormat = format for simpletables without outputclass
SimpleTableFormat = SimpleTable
; ChoiceTableFormat = format for choicetables without outputclass
ChoiceTableFormat = ChoiceTable
; PropertiesTableFormat = format for properties without outputclass
PropertiesTableFormat = PropTable

To specify a different format for selected tables, you must give those tables an outputclass attribute; see §6.3.2 Mapping table outputclass attributes to formats.

If a table in your DITA document already has an outputclass attribute, and a table format of the same name is defined in your project configuration file or in a Tables configuration file, DITA2Go uses that format for the table in question, instead of the default format.

To specify a format for a paragraph used in output to contain a table:

[TableOptions]
; UseTableAnchor = Yes (default, use anchor para) or No
UseTableAnchor=Yes
; TableAnchorFormat = name of para fmt used to contain tables
TableAnchorFormat = TableAnchorPara

The default value of TableAnchorFormat is TableAnchor; this format is defined in the formats configuration files in %OMSYSHOME%\d2g\system\formats.

For selected table formats you can override use of the anchor format named by TableAnchorFormat:

[TableAnchorFormats]
ThisTableFormat = OtherAnchorPara

To assign an @outputclass to table footer rows:

[TableOptions]
; TableFooterClass = @outputclass used in <row> to identify a row
; that should be processed as a table footer; case-insensitive.
TableFooterClass = FooterClass

The default value of TableFooterClass is footer.

Although DITA tables do not include the notion of a footer row, you can designate <row> elements to be treated as footer rows on output. Any <row> element that contains an outputclass attribute with the value assigned to TableFooterClass will get the format defined for that value, provided UseOutputClassForFormat=Yes; see §6.2 Specifying options for naming formats.

To define output formats for tables, see §7.7 Configuring table output formats.

For additional ways to customize tables for specific output types, see:

§15.6 Converting tables to print RTF

§33. Converting tables to HTML.

Previous Topic:  6.8 Specifying options for figures

Next Topic:  6.10 Specifying options for special lists

Parent Topic:  6. Mapping elements to output formats

Sibling Topics:

6.1 Understanding how to assign formats

6.2 Specifying options for naming formats

6.3 Mapping outputclass attribute values to formats

6.4 Mapping element paths to output formats

6.5 Mapping element attributes to output formats

6.6 Specifying formats for cross references

6.7 Specifying formats for footnotes

6.8 Specifying options for figures

6.10 Specifying options for special lists

6.11 Specifying options for draft comments

6.12 Specifying options for maps

6.13 Deciding where to display title and shortdesc

Table of ContentsIndex