24.4.4.2 Including typographic elements in addition to mapped formats

You can add typographic elements in addition to the element to which a character format is mapped.

To include typographic elements in DITA XML output:

[Typographics]
; UseTypographicElements = No (XML default, suppress b, i, u, tt, sub,
; and sup even when specified in a format) or Yes (HTML default)
UseTypographicElements = Yes

When UseTypographicElements=Yes, typographic elements b, i, u, tt, sup, and sub appear in DITA XML output in addition to any elements to which character formats are mapped.  

If any character formats are mapped to elements, and your project configuration file includes a UseTypographicElements setting, to avoid double nesting make sure you use the XML default value: UseTypographicElements=No.

Incorporate typographic elements sparingly, especially if you are using <outputclass>; see §24.4.6.6 Providing outputclass attributes for all elements. DITA asks for semantic, not presentational, tags. It is best to let CSS handle the presentation later.

See also:

§24.4.5 Assigning multiple typographic elements to a format

§30.7 Managing typographic elements for HTML or XML

Previous Topic:  24.4.4.1 Assigning DITA elements to character formats

Next Topic:  24.4.4.3 Specifying a default element for unmapped character formats

Parent Topic:  24.4.4 Mapping character formats to DITA inline elements

Sibling Topics:

24.4.4.1 Assigning DITA elements to character formats

24.4.4.3 Specifying a default element for unmapped character formats

24.4.4.4 Overriding element mapping for character formats

24.4.4.5 Using alternate character formats for menu cascades