8000 [FIX] latex style: compatibility with sphinx 1.6+ · AllenChen7/documentation-user@591adee · GitHub
[go: up one dir, main page]

Skip to content

Commit 591adee

Browse files
committed
[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 ;-)
1 parent 48b11b3 commit 591adee

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

_static/latex/odoo.sty

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,11 @@
8282
\renewcommand{\footrulewidth}{0.1pt}
8383

8484
\renewcommand{\maketitle}{%
85-
\noindent\rule{\textwidth}{1pt}\ifsphinxpdfoutput\newline\null\fi\par
86-
\ifsphinxpdfoutput
87-
\begingroup
88-
%\pdfstringdefDisableCommands{\def\\{, }\def\endgraf{ }\def\and{, }}%
89-
%\hypersetup{pdfauthor={\@author}, pdftitle={\@title}}%
90-
\endgroup
91-
\fi
85+
\noindent\rule{\textwidth}{1pt}\par
9286
\begin{flushright}
9387
\sphinxlogo
9488
\py@HeaderFamily
95-
{\Huge \@title }\par
89+
{\huge \@title }\par
9690
\end{flushright}
9791
\@thanks
9892
\setcounter{footnote}{0}
@@ -118,4 +112,4 @@
118112
\newpage
119113
}
120114

121-
\makeatother
115+
\makeatother

0 commit comments

Comments
 (0)
0