Skip to content

Commit 6d3f283

Browse files
authored
Merge pull request matplotlib#15799 from jfbu/latex_authors_on_titlepage
Improve display of author names on PDF titlepage of matplotlib own docs
2 parents 0851574 + da0f35a commit 6d3f283

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ def _check_dependencies():
298298

299299
latex_documents = [
300300
('contents', 'Matplotlib.tex', 'Matplotlib',
301-
'John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the '
302-
'matplotlib development team', 'manual'),
301+
'John Hunter\\and Darren Dale\\and Eric Firing\\and Michael Droettboom'
302+
'\\and and the matplotlib development team', 'manual'),
303303
]
304304

305305

@@ -310,6 +310,9 @@ def _check_dependencies():
310310
latex_elements = {}
311311
# Additional stuff for the LaTeX preamble.
312312
latex_elements['preamble'] = r"""
313+
% One line per author on title page
314+
\DeclareRobustCommand{\and}%
315+
{\end{tabular}\kern-\tabcolsep\\\begin{tabular}[t]{c}}%
313316
% In the parameters section, place a newline after the Parameters
314317
% header. (This is stolen directly from Numpy's conf.py, since it
315318
% affects Numpy-style docstrings).

0 commit comments

Comments
 (0)