How do I get rid of the “Release 1” in the Page Header of the Sphinx Latex Output?

后端 未结 4 1398
我在风中等你
我在风中等你 2020-12-21 07:08

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,

4条回答
  •  时光说笑
    2020-12-21 07:58

    The bellow lines eliminate also the comma in the header. Add them in your conf.py file:

    latex_custom = r'''
    \makeatletter
    
        \fancypagestyle{normal}{
            \fancyhf{}
            \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
            \fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
            \fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
            \fancyhead[LE,RO]{{\py@HeaderFamily \@title}}
            \renewcommand{\headrulewidth}{0.4pt}
            \renewcommand{\footrulewidth}{0.4pt}
    
    \makeatother
    '''
    
    latex_elements = {'preamble': latex_custom}
    

    Such a solution affects only the header. If you want to remove the release sign also from the front page use the solution provided by ddbeck.

提交回复
热议问题