Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF title page has extra space after author (or authors) name (names) #6004

Closed
jfbu opened this issue Feb 2, 2019 · 0 comments
Closed

PDF title page has extra space after author (or authors) name (names) #6004

jfbu opened this issue Feb 2, 2019 · 0 comments

Comments

@jfbu
Copy link
Contributor

jfbu commented Feb 2, 2019

For example for 'manual':

capture d ecran 2019-02-02 a 17 48 36

I feel

capture d ecran 2019-02-02 a 17 49 15

would be nicer.

I don't know if this qualifies as bug. It shows more prominently in 'howto' case, because there is less vertical whitespace.

The cause is in this code from sphinxmanual.cls:

        \begin{tabular}[t]{c}
          \@author
        \end{tabular}

which is copied-pasted from standard \maketitle macro, but the original LaTeX article/book class does that in a center environment, and Sphinx does it in flushright. The tabular always adds (intercolumn, \tabcolsep) space at left and right, and this what is seen at right.

@jfbu jfbu added type:enhancement enhance or introduce a new feature builder:latex labels Feb 2, 2019
jfbu added a commit to jfbu/sphinx that referenced this issue Feb 2, 2019
Closes: sphinx-doc#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.
@jfbu jfbu added type:bug and removed type:enhancement enhance or introduce a new feature labels Feb 4, 2019
@jfbu jfbu closed this as completed in decca71 Feb 4, 2019
@jfbu jfbu added this to the 1.8.5 milestone Feb 4, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant