重组文本多级
reStructuredText Multilevel
如何使用 reStructuredText 获得这样的结构?有可能吗?
1. Title
1.1 Subtitle
1.1.2 SubSubtitle
1.1.2.1 SubSubtitle
1.2 2ndSubtitle
1.2.1 2ndSubSubtitle
你看过Sphinx documentation for nested lists了吗?你的问题应该表明你做出了 一些 的努力,包括你阅读了哪些文档、你尝试了什么、你期望什么以及你观察到了什么。
Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines:
* this is
* a list
* with a nested list
* and some subitems
* and here the parent list continues
用 #.
代替 *
。
所以我在这里找到了答案:
Title
=====
Subtitle
--------
___________
SubSubtitle
___________
SubSubSubtitle 1
________________
SubSubSubtitle 2
________________
_____________
SubSubtitle 2
_____________
Title 2
=======
输出将是(如果编号的文档树):
1. Title
1.1 Subtitle
1.1.1 SubSubtitle
1.1.1.1 SubSubSubtitle 1
1.1.1.2 SubSubSubtitle 2
1.1.2 SubSubtitle 2
2. Title 2
有关更多信息,请查看:http://docutils.sourceforge.net/docs/user/rst/quickstart.html#sections
如何使用 reStructuredText 获得这样的结构?有可能吗?
1. Title
1.1 Subtitle
1.1.2 SubSubtitle
1.1.2.1 SubSubtitle
1.2 2ndSubtitle
1.2.1 2ndSubSubtitle
你看过Sphinx documentation for nested lists了吗?你的问题应该表明你做出了 一些 的努力,包括你阅读了哪些文档、你尝试了什么、你期望什么以及你观察到了什么。
Nested lists are possible, but be aware that they must be separated from the parent list items by blank lines:
* this is
* a list
* with a nested list
* and some subitems
* and here the parent list continues
用 #.
代替 *
。
所以我在这里找到了答案:
Title
=====
Subtitle
--------
___________
SubSubtitle
___________
SubSubSubtitle 1
________________
SubSubSubtitle 2
________________
_____________
SubSubtitle 2
_____________
Title 2
=======
输出将是(如果编号的文档树):
1. Title
1.1 Subtitle
1.1.1 SubSubtitle
1.1.1.1 SubSubSubtitle 1
1.1.1.2 SubSubSubtitle 2
1.1.2 SubSubtitle 2
2. Title 2
有关更多信息,请查看:http://docutils.sourceforge.net/docs/user/rst/quickstart.html#sections