#### 30.7.2 Choosing how to treat typographic elements

To specify how typographic elements should be treated:

    [Typographics]
    ; UseTypographicElements = Yes (HTML default) or No (XML default,
    ; suppress b, i, u, tt, sub, and sup even when specified in a format)
    ; UseFormatTypographics = Yes (default, use b, i, u, strike, sub
    ;  and sup when set in paragraph or character formats), or No
    ;  (suppress in both para and char formats)
    ; UseParagraphTypographics = Yes (default, use above when set in
    ;  paragraph formats), or No (suppress in para formats)
    ; UseCharacterTypographics = Yes (default, use above when set in
    ;  character formats), or No (suppress in char formats)
    ; UseTypographicStyles = No (default) or Yes (use tags below if set)
    ; typographic tag (b, i, u, strike, sub, sup) = tag to use instead,
    ; possibly followed by attributes.; Both "over" for overline and "chbar" for change bar can be used
    ; as pseudotags here.

You can choose to:

Suppress all typographics

Replace typographics with other tags.

Suppress all typographics

To eliminate all typographic elements:

    [Typographics]
    UseTypographicElements = No

When UseTypographicElements=No, all settings of character properties are eliminated, including font size, font color, and font name in addition to bold, italic, underline, strike, subscript, and superscript; regardless of whether those properties are intrinsic to a character or paragraph format or were applied as an override. This setting, UseTypographicElements=No, cannot be overridden by any other settings in section [Typographics]. This is the appropriate value for DITA XML output; see §24.4.4 Mapping character formats to DITA inline elements.

Replace typographics with other tags

To specify tags to use for individual typographic elements:

    [Typographics]
    UseTypographicElements = Yes
    UseTypographicStyles = Yes
    typographic = tag

When UseTypographicStyles=Yes, you can specify other tags to use in place of typographic elements. The typographic elements you can replace are b, i, u, strike, sub, and sup. You can specify attributes as well. For example:

    [Typographics]
    UseTypographicStyles = Yes
    i = emphasis
    b = emphasis role="bold"

If UseFormatTypographics=Yes, the tags you specify replace any named typographics intrinsic to formats.

Previous Topic: 30.7.1 Deciding whether to suppress typographic elements

Next Topic: 30.8 Specifying text colors for HTML

Parent Topic: 30.7 Managing typographic elements for HTML or XML

Sibling Topics:

30.7.1 Deciding whether to suppress typographic elements

Table of Contents • Index