[FIX] latex style: compatibility with sphinx 1.6+
As of 1.6 and PR sphinx-doc/sphinx#3550, \ifsphinxpdfoutput is gone. It was not really necessary in the first place, mostly a leftover from an old copy of sphinx's \maketitle commands. Also make the title slightly less huge ;-)
This commit is contained in:
parent
48b11b31cc
commit
591adeeb84
@ -82,17 +82,11 @@
|
|||||||
\renewcommand{\footrulewidth}{0.1pt}
|
\renewcommand{\footrulewidth}{0.1pt}
|
||||||
|
|
||||||
\renewcommand{\maketitle}{%
|
\renewcommand{\maketitle}{%
|
||||||
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
|
\noindent\rule{\textwidth}{1pt}\par
|
||||||
\ifsphinxpdfoutput
|
|
||||||
\begingroup
|
|
||||||
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
|
|
||||||
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
|
|
||||||
\endgroup
|
|
||||||
\fi
|
|
||||||
\begin{flushright}
|
\begin{flushright}
|
||||||
\sphinxlogo
|
\sphinxlogo
|
||||||
\py@HeaderFamily
|
\py@HeaderFamily
|
||||||
{\Huge \@title }\par
|
{\huge \@title }\par
|
||||||
\end{flushright}
|
\end{flushright}
|
||||||
\@thanks
|
\@thanks
|
||||||
\setcounter{footnote}{0}
|
\setcounter{footnote}{0}
|
||||||
@ -118,4 +112,4 @@
|
|||||||
\newpage
|
\newpage
|
||||||
}
|
}
|
||||||
|
|
||||||
\makeatother
|
\makeatother
|
||||||
|
Loading…
Reference in New Issue
Block a user