Skip to content

Instantly share code, notes, and snippets.

@xiispace
Created December 6, 2017 01:49
Show Gist options
  • Save xiispace/5117acd37a36201c000018c9da41f9df to your computer and use it in GitHub Desktop.
Save xiispace/5117acd37a36201c000018c9da41f9df to your computer and use it in GitHub Desktop.
sphinx 生成 latexpdf 去掉题注
# 修改latex_elements
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
'papersize': 'a4paper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
'preamble': r'''
\makeatletter
\fancypagestyle{normal}{
\fancyhf{}
\fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
\fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
\fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
\renewcommand{\footrulewidth}{0.4pt}
}
\makeatother
''',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment