Created
December 6, 2017 01:49
-
-
Save xiispace/5117acd37a36201c000018c9da41f9df to your computer and use it in GitHub Desktop.
sphinx 生成 latexpdf 去掉题注
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 修改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