【问题标题】:How to remove the number of a particular charpter in a RST file?如何删除 RST 文件中特定章节的编号?
【发布时间】:2018-10-19 07:15:16
【问题描述】:

在使用 Python Sphinx 制作乳胶文件时,我想删除给定章节的章节编号,因为它们严格来说只是描述后续章节的过渡文本。

例如,我的目录树是这样的

.. toctree::
   :maxdepth: 3

   intro
   part_one 
   chapter_one
   chapter_two
   part_two
   chapter_three 
   chapter_four 

这里,intro、part_one 和 part_two 是不属于章节的描述性文本。所以,我不希望他们有章节编号,同时又不打断“真实”章节的编号。

我怎样才能做到这一点?

【问题讨论】:

    标签: latex python-sphinx


    【解决方案1】:

    Sphinx 无法开箱即用。编号是全部或全部。参见http://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree下的“章节编号”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-07
      • 2018-09-02
      • 2021-04-15
      • 1970-01-01
      • 2010-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多