Reputation: 2777
How do I make the following list in reStructuredText using the auto-enumerator character (#)?
1. one
a. one_a
b. one_b
2.two
a. two_a
I. one_a_i
b. two_b
In the above list, the first-level of the list is decimal, the second level is lower-alpha, and the third is upper-roman. I'd like to be able to specify this while also using the auto-enumerator, such that I can easily re-order the items in the list or add a new item in the middle of the list without having to change the values of each item in the list.
Is it possible to tell the auto-numerator which formatting type to use, with distinct types for each nesting level in the list?
Upvotes: 2
Views: 492
Reputation: 15045
list-style-type
... rst-class:: enumlist
#. one
#. one_a
#. one_b
#. two
#. two_a
#. one_a_i
#. two_b
ol.enumlist {
list-style-type: decimal;
}
ol.enumlist ol {
list-style-type: lower-alpha;
}
ol.enumlist ol ol {
list-style-type: upper-roman;
}
Upvotes: 3