The fancy_lists
extension allows various styles of ordered lists:
With period:
1. decimal
2. decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
A. upper alpha
B. upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
a. lower alpha
b. lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
I. Upper Roman
II. Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
i. Lower Roman
ii. Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
With one parenthesis:
1) decimal
2) decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
A) upper alpha
B) upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
a) lower alpha
b) lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
I) Upper Roman
II) Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
i) Lower Roman
ii) Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
With two parentheses:
(1) decimal
(2) decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
(A) upper alpha
(B) upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
(a) lower alpha
(b) lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
(I) Upper Roman
(II) Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
(i) Lower Roman
(ii) Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
Note that with Upper Alpha or Upper Roman style list items followed by periods, we require at least two spaces after the list marker in order to avoid capturing initials:
B. Russell
B. Russell
I. J. Good
I. J. Good
.
<ol start="2" type="A">
<li>Russell</li>
</ol>
<p>B. Russell</p>
<ol type="I">
<li>J. Good</li>
</ol>
<p>I. J. Good</p>
A new list starts with any style change:
1. one
2) one
.
<ol>
<li>one</li>
</ol>
<ol start="2">
<li>one</li>
</ol>
1. one
a. one
.
<ol>
<li>one</li>
</ol>
<ol type="a">
<li>one</li>
</ol>
Variable start numbers should work with all types of lists:
b. two
(vi) six
.
<ol start="2" type="a">
<li>two</li>
</ol>
<ol start="6" type="i">
<li>six</li>
</ol>
In cases of ambiguity (such as 'v.'
, which could be
lowercase Roman or lowercase alphabetical, we prefer an
interpretation that continues an existing list:
u. one
v. two
.
<ol start="21" type="a">
<li>one</li>
<li>two</li>
</ol>
iv. one
v. two
.
<ol start="4" type="i">
<li>one</li>
<li>two</li>
</ol>
When ambiguities cannot be resolved this way,
we prefer to interpret i.
and I.
as Roman numerals,
and other single letters as alphabetical:
i. one
ii. two
.
<ol type="i">
<li>one</li>
<li>two</li>
</ol>
I. one
.
<ol type="I">
<li>one</li>
</ol>
C. one
CI. one
.
<ol start="3" type="A">
<li>one</li>
</ol>
<ol start="101" type="I">
<li>one</li>
</ol>