pdf - sphinx用latexpdf删除我pdf中的章节标题?

标签 pdf latex python-sphinx restructuredtext

我使用 latexpdf 和 sphinx 生成从 rst 到 pdf 的文档。

如何在每章之前删除章节标题?

-----------

CHAPTER ONE

-----------

最佳答案

sphinx documentation 中所述您可以更改 latex_documents documentclass 到 howto 文档类,这将在您的部分之前摆脱“章节”。但是,这也会稍微改变整个构建的格式。

documentclass: Normally, one of 'manual' or 'howto' (provided by Sphinx). Other document classes can be given, but they must include the “sphinx” package in order to define Sphinx’ custom LaTeX commands. “howto” documents will not get appendices. Also, howtos will have a simpler title page.



只需编辑您的 conf.py并更改 manualhowto .
latex_documents = [
  ('index', 'foo.tex', u'foo Documentation',
   u'bar', 'howto'),
]

关于pdf - sphinx用latexpdf删除我pdf中的章节标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26120632/

相关文章:

php - 使用 PHP 从 html 表单转为 PDF

php - 在不保存实际文件的情况下将 PDF 嵌入到 HTML 中

c# - 显示从字节数组到 c# winforms 的 pdf

c - 如何处理.dll依赖关系?

带圆括号的 R Markdown 和 Latex 格式引用

python-sphinx - 如何在Sphinx TOC中包含`genindex`?

android - 离线时在 webview 中加载 pdf

latex - 如何正确插入图像/图形,并在 latex 中使文本 "flow around"成为图像/图形?

python - 在 Sphinx 扩展中获取源 .rst 文件路径

python - 使用 Sphinx 转换为 HTML 时如何在 reStructuredText 中转义单引号