latex_elements = {
'preamble': r'''
\makeatletter
\fancypagestyle{normal}{
% this is the stuff in sphinx.sty
\fancyhf{}
\fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
% we comment this out and
%\fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
%\fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
% add copyright stuff
\fancyfoot[LO,RE]{{This is \textcopyright\ 2019, Sphinx Team.}}
% again original stuff
\fancyhead[LE,RO]{{\py@HeaderFamily \@title\sphinxheadercomma\py@release}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
% this is applied to each opening page of a chapter
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
% add copyright stuff for example at left of footer on odd pages,
% which is the case for chapter opening page by default
\fancyfoot[LO,RE]{{This is \textcopyright\ 2019, Sphinx Team.}}
}
\makeatother
''',
}
$
。'manual'
文档类,因为'howto'
文档类没有这样的概念),通过可选的LaTeX宏\sphinxbackoftitlepage
,你可以在'preamble'
或'maketitle'
中定义。请参见文档(需要向下滚动到'maketitle'
)。'manual'
文档类)