views:

78

answers:

1

Is there a way in rst to have automatic header numbering ? That is something like:

#. Some Section
===============
...
#. Some Subsection
------------------
...
#. Another Subsection
---------------------
...
#. Another Section
==================
...

that would be rendered as:

1. Some Section

...

1.1 Some Subsection

...

1.2 Another Subsection

...

2. Another Section

...

+1  A: 

According to the fine manual, with using the sectnum directive is it possible: http://docutils.sourceforge.net/docs/ref/rst/directives.html#automatic-section-numbering

So you can add something like this in the very first line(s):

.. sectnum::

HTH

Zsolt Botykai
Duh, how did I miss it ? Thanks!
gsakkis