From 84c102fe369eadb7284f0b9bee27035bb4dc9db5 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Sun, 18 Aug 2024 13:20:40 -0600 Subject: [PATCH] docs: proposal for pdf title page customization --- doc/utils/sphinx-config/conf.py.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/utils/sphinx-config/conf.py.in b/doc/utils/sphinx-config/conf.py.in index cc003ffa48..974f62c539 100644 --- a/doc/utils/sphinx-config/conf.py.in +++ b/doc/utils/sphinx-config/conf.py.in @@ -299,6 +299,8 @@ latex_elements = { # Additional stuff for the LaTeX preamble. 'preamble': r''' +\usepackage{afterpage} +\usepackage{xcolor} \setcounter{tocdepth}{2} \renewcommand{\sfdefault}{ptm} % Use Times New Roman font for \textrm \renewcommand{\sfdefault}{phv} % Use Helvetica font for \textsf @@ -343,7 +345,13 @@ latex_elements = { \renewcommand*\l@subsection{\@dottedtocline{2}{4.6em}{4.5em}} } \makeatother -''' +''', +'maketitle': r''' +\pagecolor{black} +\color{white} +\afterpage{\nopagecolor\color{black}} +\sphinxmaketitle +''', } # Grouping the document tree into LaTeX files. List of tuples