在rst中有没有一种自动标头编号的方法?这类似于:
#. Some Section
===============
...
#. Some Subsection
------------------
...
#. Another Subsection
---------------------
...
#. Another Section
==================
...它将呈现为:
1.某些部分
..。
1.1某些小节
..。
1.2另一个小节
..。
2.另一节
..。
发布于 2010-03-02 17:58:59
根据docutils手册,您可以使用sectnum指令:http://docutils.sourceforge.net/0.7/docs/ref/rst/directives.html#automatic-section-numbering
因此,您可以在第一行中添加类似以下内容:
.. sectnum::HTH
https://stackoverflow.com/questions/2362197
复制相似问题