14.6 Treating figure titles as table titles

If you use a fig element to hold a <simpletable> in order to give the <simpletable> a title, you might want the fig title included in the list of tables instead of in the list of figures. To make this happen, give either the fig element or its title an @outputclass that contains the string “table” or “Table”. By default, DITA2Go includes such titles in the list of tables instead of the list of figures; and applies the table-title output format instead of the figure-title output format.

To instead keep titles of fig elements that include an @outputclass with the string “table” or “Table” in the list of figures:

[FigureOptions]
; TreatTableFigAsTable = Yes (default), or No
TreatTableFigAsTable = No

When TreatTableFigAsTable=Yes, if either a fig element or its title element has an @outputclass that contains the string “table” or “Table”, the figure title gets the table title format and goes into the list of tables instead of the list of figures.

For example:

<fig id="figspec">
<title outputclass="TableTitle">Figure Containing a Table</title>
<simpletable>
...
</simpletable>
</fig>

The title Figure Containing a Table gets the table title format, because of the @outputclass, and also goes into the list of tables instead of into the list of figures.

Previous Topic:  14.5 Generating a list of tables

Next Topic:  14.7 Producing a glossary

Parent Topic:  14. Generating lists and indexes

Sibling Topics:

14.1 Understanding how DITA2Go produces 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.5 Generating a list of tables

14.7 Producing a glossary

14.8 Producing an index

14.9 Configuring variant booklist components

Table of ContentsIndex