From 54e7ed30ac796095a09aa44f8e1467fa260f54ae Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 9 Jun 2020 02:51:47 +0200 Subject: [PATCH] [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. --- _static/latex/odoo.sty | 1 + 1 file changed, 1 insertion(+) diff --git a/_static/latex/odoo.sty b/_static/latex/odoo.sty index 4f378c346..42431a5a6 100644 --- a/_static/latex/odoo.sty +++ b/_static/latex/odoo.sty @@ -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}