Skip to content

Tag Definition: ol

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

bulletAlign

implied

None

bulletColor

implied

None

bulletDedent

implied

None

bulletDir

implied

None

bulletFontName

implied

None

bulletFontSize

implied

None

bulletFormat

implied

None

bulletOffsetY

implied

None

bulletType

implied

None

leftIndent

implied

None

rightIndent

implied

None

spaceAfter

implied

None

spaceBefore

implied

None

start

implied

None

style

implied

None

Can contain
(li*)

Purpose

This lets you declare an ordered list. You can control details on alignment, colors, fonts, etc.

For bullet types you can choose from:

  • 'I': Roman numerals (capitals)
  • 'i': Roman numerals (lower case)
  • '1': Arabic numerals
  • 'A': Capital letters
  • 'a': Lowercase letters

You may wish to use a listStyle for consistency.

Check out our docs page on this.

Example usage

Simple example:

<story>
    <ol bulletType="a">
        <li><para>Item 1</para></li>
        <li><para>Item 2</para></li>
    </ol>
</story>

Detailed example:

<story>
    <ol bulletOffsetY="2" bulletColor="red" bulletFontName="Times-Roman">
        <li bulletColor="blue" bulletFontName="Helvetica">
            <para>Welcome to RML 1</para>
        </li>
        <li>
            <ul bulletOffsetY="-4" bulletColor="red" bulletFontName="Times-Roman" bulletFontSize="5" rightIndent="10">
                <li bulletColor="blue" bulletFontName="Helvetica">
                    <para>unordered 1</para>
                </li>
                <li>
                    <para>unordered 2</para>
                </li>
            </ul>
        </li>
    </ol>
</story>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <story> ➔ <ol>