##### 8.5.5.2 Modifying the appearance of numbers

Suppose that for RTF output you want to make numbers on procedure steps and substeps bold, and give them a color different from the text; for example, RGB 42-96-248. To do this, in local_d2rtf_formats.ini you would modify the inline format used in the numbering formats for steps and substeps.

These are the format definitions in system d2rtf_formats.ini:

    [StepNumbered]
    based=Numbered1
    xref=StepXref

    [StepNumberedFirst]
    based=Numbered1First
    xref=StepXref

Look at the format on which they are based:

    [Numbered1]
    based=Body
    margin left=0.25in
    text indent=-0.25in
    margin top=2pt
    margin bottom=2pt
    tabs=0.25in
    number=List1Num
    xref=NumXref

You see that the number format is List1Num. That is defined (in system d2rtf_subformats.ini) as:

    [List1Num]
    stream = List1Stream
    counter = 1
    form = <counter1/>.<tab/>

You need to override the form value. Add a section for the inline format in local_d2rtf_formats.ini, specifying a different number format; for example:

    [StepNumbered]
    number=MyList1Num

and define that number format in local_d2rtf_subformats.ini:

    [MyList1Num]
    based=List1Num
    form=<BlueBold><counter1/>.<tab/>

    [BlueBold]
    color=rgb(42,96,148)
    based=Bold

Now the numbers on steps and substeps will be bold and blue in RTF output.

Previous Topic: 8.5.5.1 Numbering ordered lists

Next Topic: 8.5.5.3 Numbering chapters, figures, and tables

Parent Topic: 8.5.5 Considering examples of numbering schemes

Sibling Topics:

8.5.5.1 Numbering ordered lists

8.5.5.3 Numbering chapters, figures, and tables

8.5.5.4 Specifying symbols for bulleted lists

Table of Contents • Index