如何摆脱“Release 1"?在 Sphinx Latex 输出的页眉中? [英] How do I get rid of the "Release 1" in the Page Header of the Sphinx Latex Output?

查看:20
本文介绍了如何摆脱“Release 1"?在 Sphinx Latex 输出的页眉中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Sphinx 的手动"文档类,我对 Latex 输出的外观非常满意,但页眉除外.它包含我论文的标题,以及Release 1".

I'm using the "manual" document class of Sphinx and I'm quite happy with how the Latex Output looks like, except for the page header. It contains the title of my paper, as well as a "Release 1".

由于我在写论文而不是文档,我显然不需要发布信息.不幸的是,很难找到有关如何自定义 Sphinx 乳胶输出的信息.

Since I'm writing a paper and not a documentation, I clearly don't need the release information. Unfortunately, it is very hard to find information on how to customize Sphinx latex output.

有人知道怎么做吗?

推荐答案

要在 Latex 输出顶部隐藏发布信息,您需要设置 releaselatex_elements['releasename'] 以清空 conf.py 中的字符串.因此,您可以在 conf.py 中添加或修改类似的内容:

To suppress the release info at the top of your Latex output, you need to set the release and latex_elements['releasename'] to empty strings in your conf.py. So you might add or modify something like this in conf.py:

release = ''
latex_elements = { 'releasename': '' }

然后发布信息将被隐藏.

Then the release info will be hidden.

这篇关于如何摆脱“Release 1"?在 Sphinx Latex 输出的页眉中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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