From decca71ef7ca9b7e6e352724a267afa6ba7f3948 Mon Sep 17 00:00:00 2001 From: jfbu Date: Sat, 2 Feb 2019 18:07:34 +0100 Subject: [PATCH] LaTeX: remove extra space after author on title page in PDF Closes: #6004 Comment: \begin{tabular}[@{}c@{}] does not work in case of multiple authors separated by \and in latex_documents, because latex has this definition of \and : macro:->\end {tabular}\hskip 1em \@plus .17fil\begin {tabular}[t]{c} which means we would need to modify it to read macro:->\end {tabular}\hskip 1em \@plus .17fil\begin {tabular}[t]{@{}c@{}} (or only one @{} at end) modifying space between two authors. --- CHANGES | 2 ++ sphinx/texinputs/sphinxhowto.cls | 2 +- sphinx/texinputs/sphinxmanual.cls | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 1811eec4d..2313f4ddf 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,8 @@ Features added Bugs fixed ---------- +* LaTeX: Remove extraneous space after author names on PDF title page (refs: #6004) + Testing -------- diff --git a/sphinx/texinputs/sphinxhowto.cls b/sphinx/texinputs/sphinxhowto.cls index 6e4858567..d4a38d4f5 100644 --- a/sphinx/texinputs/sphinxhowto.cls +++ b/sphinx/texinputs/sphinxhowto.cls @@ -46,7 +46,7 @@ {\Large \begin{tabular}[t]{c} \@author - \end{tabular}}\par + \end{tabular}\kern-\tabcolsep}\par \vspace{25pt} \@date \par \py@authoraddress \par diff --git a/sphinx/texinputs/sphinxmanual.cls b/sphinx/texinputs/sphinxmanual.cls index 1ab80d264..864fce080 100644 --- a/sphinx/texinputs/sphinxmanual.cls +++ b/sphinx/texinputs/sphinxmanual.cls @@ -55,7 +55,7 @@ {\LARGE \begin{tabular}[t]{c} \@author - \end{tabular} + \end{tabular}\kern-\tabcolsep \par} \vfill\vfill {\large