#### 7.4.1 Naming output formats

A format name must end in a suffix that indicates the type of format (except for the names of paragraph formats, which do not require a suffix). How a format configuration file is referenced in [Templates] settings determines which types of formats are valid in the referenced file, and thus the valid suffixes for the names of formats defined in that file; see §7.2 Working with format configuration files. Table 7-1 shows valid suffixes for format names, depending on the [Templates] reference.

Table 7-1 Valid suffixes for names of formats and format components

In files referenced via [Templates] setting: | Type of format or component | Format name suffix | Ref.
Formats | Paragraph (block) | Para (optional) | 7.6.3
Character (inline) | Char | 7.6.2
Tables | Table | Table | 7.7.2
Table row | Row | 7.7.3
Table cell | Cell | 7.7.4
Pages (RTF only) | Section | Section | 7.8.2
Page header | Header | 7.8.3
Page footer | Footer | 7.8.3
Subformats | Border | Border | 8.2
Shading | Shade | 8.3
Index | Index | 14.8.3
Trademark | Mark | 8.8
Cross reference | Xref | 8.7
Run-in heading | Head | 8.6
Numbering | Num | 8.5.3
Number stream | Stream | 8.5.2

DITA2Go validates formats partly by suffix. A wrong type could result in very odd output, plus a warning in the log file.

Previous Topic: 7.4 Understanding how to define output formats

Next Topic: 7.4.2 Assigning values to format properties

Parent Topic: 7.4 Understanding how to define output formats

Sibling Topics:

7.4.2 Assigning values to format properties

7.4.3 Documenting output formats

7.4.4 Understanding the basis of format properties

7.4.5 Basing format properties on other formats

7.4.6 Modifying DITA2Go default output formats

7.4.7 Applying CSS and RTF code to output formats

7.4.8 Assigning content-adding properties to formats

Table of Contents • Index