Andreas Maier
Andreas Maier

Reputation: 3080

How to create numbered lists in (#) style with Sphinx

The RST documentation quoted by Sphinx as "The authoritative reStructuredText User Documentation" (see here) shows several styles for the formatting of numbered lists, among them the parenthesized style (see here):

(1) foo
(2) bla

However, Sphinx generates a style with dots from such RST source:

1. foo
2. bla

The Sphinx documentation only shows that dotted style (see here).

My question is: Is there any way to make Sphinx create the parenthesized style for the numbers?

Upvotes: 8

Views: 13705

Answers (1)

Anthony Petrillo
Anthony Petrillo

Reputation: 515

* This is a bulleted list.
* It has two items, the second
  item uses two lines.

1. This is a numbered list.
2. It has two items too.

#. This is a numbered list.
#. It has two items too.

See reStructuredText Primer in Sphinx documentation site.

Upvotes: 9

Related Questions