[PATCH] common: fix title page

Gedare Bloom gedare at rtems.org
Fri Apr 3 22:55:39 UTC 2020


Sphinx changed the default behavior of maketitle. Provide our
own rtemsmaketitle command and use it instead.
---
 common/conf.py        | 1 +
 common/rtemsstyle.sty | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/conf.py b/common/conf.py
index 97f8dfa..257bc4e 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -193,6 +193,7 @@ latex_elements = {
 \newcommand{\rtemscopyright}{%s}
 \usepackage{rtemsstyle}
 ''' % (copyright),
+    'maketitle': r'\rtemsmaketitle',
     'parsedliteralwraps': True,
 }
 
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index 15f80b5..90e7de5 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -20,7 +20,7 @@ numbersep=5pt,
 gobble=0,
 }
 
-\renewcommand{\maketitle}{%
+\newcommand{\rtemsmaketitle}{%
   \let\spx at tempa\relax
   \ifHy at pageanchor\def\spx at tempa{\Hy at pageanchortrue}\fi
   \hypersetup{pageanchor=false}% avoid duplicate destination warnings
-- 
2.17.1



More information about the devel mailing list