[FIX] odoo.sty: fix compatibility with older sphinx versions

`\sphinxmaketitle` only exists as of v1.8.3, and `\renewcommand` would
crash when the command is not defined. Similarly `\newcommand` would
crash if the command already exists.

`\providecommand` acts as a shim: no-op if the command exists,
otherwise creates it so that it can be redefined.

Backport of 54e7ed30ac
This commit is contained in:
Olivier Dony 2020-06-09 02:51:47 +02:00
parent 3c44972f02
commit 5807f94c02
No known key found for this signature in database
GPG Key ID: CD556E25E8A6D0D4

View File

@ -97,6 +97,7 @@
% For sphinx 1.8.3+, the command is \sphinxmaketitle and the
% layout is slightly different on the titlepage
\providecommand\sphinxmaketitle{}
\renewcommand{\sphinxmaketitle}{%
\noindent\rule{\textwidth}{1pt}\par
\begin{flushright}