Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da0f35a

Browse files
committed
[DOC] Separate author names by LaTeX command \and for title page
And give \and suitable definition for each author name to be on one line. Relates: sphinx-doc/sphinx#6875 sphinx-doc/sphinx#6876
1 parent 3d1a1bc commit da0f35a

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)