14.5 Generating a list of tables

DITA2Go produces a list of tables by default:

[ListOfTables]
; GenerateLOT = Yes (default, generate for topics in map) or No
GenerateLOT = Yes

By default, DITA2Go includes in the list of tables the title element under each table element or element derived from table (unless you assign to it element types that do not include table), provided the table element has an id attribute. This gives you a way to exclude items from the list: DITA2Go omits the titles of table elements that have no @id.

To specify a file name for the list of tables (HTML output only):

[ListOfTables]
; LOTFile = base name to use for output file, plus suffix LOT
LOTFile = mapnameLOT
; LOTSuffix = suffix for the base file name, default LOT
LOTSuffix = LOT

If you specify a value for LOTFile, LOTSuffix is ignored. See §14.2 Naming generated HTML list and index files.

To specify a title for the list of tables, in a language configuration file:

[ListOfTablesText]
; LOTTitle = title text for list of tables
LOTTitle = List of Tables

Each DITA2Go-supplied language configuration file include a default setting for LOTTitle; see §8.10 Localizing output headings, labels, and names. The value shown here is the default value specified in d2g_lang_en.ini.

To specify formats for the list of tables:

[ListOfTables]
; LOTTitleFormat = format for LOT title
LOTTitleFormat = TableListTitle
; LOTFormat = default format to use for LOT entries
LOTFormat = TableListItem
; LOTXrefFormat = format for cross references to LOT
LOTXrefFormat=TableTitleXref

All values here are the default format names, specified in configuration template d2g_config.ini, located in directory %OMSYSHOME%\d2g\config. If you change any format names, you must either alias your names to the default names, or provide your own definitions in a format configuration file; see §7. Configuring output formats.

The default format is whatever is specified for [ListOfTables]LOTFormat.

Previous Topic:  14.4 Generating a list of figures

Next Topic:  14.6 Treating figure titles as table titles

Parent Topic:  14. Generating lists and indexes

Sibling Topics:

14.1 Understanding how DITA2Go processes lists

14.2 Naming generated HTML list and index files

14.3 Generating a table of contents

14.4 Generating a list of figures

14.6 Treating figure titles as table titles

14.7 Generating an index