狮身人面像用Latexpdf删除我的pdf中的章节标题吗? [英] sphinx remove chapter title in my pdf with latexpdf?

查看:114
本文介绍了狮身人面像用Latexpdf删除我的pdf中的章节标题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ratexpdf和sphinx生成了从rst到pdf的文档.

I generate a documentation from rst to pdf with latexpdf and sphinx.

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

How can I remove chapter title before every chapter?

-----------

CHAPTER ONE

-----------

推荐答案

sphinx文档您可以将latex_documents文档类更改为howto文档类,该文档类将在您的节之前删除章".但是,这也会稍微改变整个构建的格式.

As noted in the sphinx documentation you can change the latex_documents documentclass to a howto documentclass, which will get rid of the "Chaper" before your section. However, this will also change formatting slightly for the whole build.

documentclass:通常是"manual"或"howto"之一(由Sphinx提供).可以给出其他文档类,但是它们必须包含"sphinx"包,以便定义Sphinx的自定义LaTeX命令. "howto"文档将不会获得附录.此外,howtos的标题页也会更简单.

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并将manual更改为howto.

Just edit your conf.py and change manual to howto.

latex_documents = [
  ('index', 'foo.tex', u'foo Documentation',
   u'bar', 'howto'),
]

这篇关于狮身人面像用Latexpdf删除我的pdf中的章节标题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆