mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
LaTeX: avoid ragged line endings in case of multi-line author display
Closes #6876
This commit is contained in:
parent
0d80cff43c
commit
204c230c73
1
CHANGES
1
CHANGES
@ -80,6 +80,7 @@ Bugs fixed
|
|||||||
include this match.
|
include this match.
|
||||||
* #6848: config.py shouldn't pop extensions from overrides
|
* #6848: config.py shouldn't pop extensions from overrides
|
||||||
* #6867: text: extra spaces are inserted to hyphenated words on folding lines
|
* #6867: text: extra spaces are inserted to hyphenated words on folding lines
|
||||||
|
* #6876: LaTeX: multi-line display of authors on title page has ragged edges
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
%
|
%
|
||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||||
\ProvidesClass{sphinxhowto}[2018/12/23 v2.0 Document class (Sphinx howto)]
|
\ProvidesClass{sphinxhowto}[2019/12/01 v2.3.0 Document class (Sphinx howto)]
|
||||||
|
|
||||||
% 'oneside' option overriding the 'twoside' default
|
% 'oneside' option overriding the 'twoside' default
|
||||||
\newif\if@oneside
|
\newif\if@oneside
|
||||||
@ -27,6 +27,17 @@
|
|||||||
\setcounter{secnumdepth}{2}
|
\setcounter{secnumdepth}{2}
|
||||||
\setcounter{tocdepth}{2}% i.e. section and subsection
|
\setcounter{tocdepth}{2}% i.e. section and subsection
|
||||||
|
|
||||||
|
% Adapt \and command to the flushright context of \sphinxmaketitle, to
|
||||||
|
% avoid ragged line endings if author names do not fit all on one single line
|
||||||
|
\DeclareRobustCommand{\and}{%
|
||||||
|
\end{tabular}\kern-\tabcolsep
|
||||||
|
\allowbreak
|
||||||
|
\hskip\dimexpr1em+\tabcolsep\@plus.17fil\begin{tabular}[t]{c}%
|
||||||
|
}%
|
||||||
|
% If it is desired that each author name be on its own line, use in preamble:
|
||||||
|
%\DeclareRobustCommand{\and}{%
|
||||||
|
% \end{tabular}\kern-\tabcolsep\\\begin{tabular}[t]{c}%
|
||||||
|
%}%
|
||||||
% Change the title page to look a bit better, and fit in with the fncychap
|
% Change the title page to look a bit better, and fit in with the fncychap
|
||||||
% ``Bjarne'' style a bit better.
|
% ``Bjarne'' style a bit better.
|
||||||
%
|
%
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
%
|
%
|
||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||||
\ProvidesClass{sphinxmanual}[2018/12/23 v2.0 Document class (Sphinx manual)]
|
\ProvidesClass{sphinxmanual}[2019/12/01 v2.3.0 Document class (Sphinx manual)]
|
||||||
|
|
||||||
% chapters starting at odd pages (overridden by 'openany' document option)
|
% chapters starting at odd pages (overridden by 'openany' document option)
|
||||||
\PassOptionsToClass{openright}{\sphinxdocclass}
|
\PassOptionsToClass{openright}{\sphinxdocclass}
|
||||||
@ -30,6 +30,17 @@
|
|||||||
\setcounter{secnumdepth}{2}
|
\setcounter{secnumdepth}{2}
|
||||||
\setcounter{tocdepth}{1}
|
\setcounter{tocdepth}{1}
|
||||||
|
|
||||||
|
% Adapt \and command to the flushright context of \sphinxmaketitle, to
|
||||||
|
% avoid ragged line endings if author names do not fit all on one single line
|
||||||
|
\DeclareRobustCommand{\and}{%
|
||||||
|
\end{tabular}\kern-\tabcolsep
|
||||||
|
\allowbreak
|
||||||
|
\hskip\dimexpr1em+\tabcolsep\@plus.17fil\begin{tabular}[t]{c}%
|
||||||
|
}%
|
||||||
|
% If it is desired that each author name be on its own line, use in preamble:
|
||||||
|
%\DeclareRobustCommand{\and}{%
|
||||||
|
% \end{tabular}\kern-\tabcolsep\\\begin{tabular}[t]{c}%
|
||||||
|
%}%
|
||||||
% Change the title page to look a bit better, and fit in with the fncychap
|
% Change the title page to look a bit better, and fit in with the fncychap
|
||||||
% ``Bjarne'' style a bit better.
|
% ``Bjarne'' style a bit better.
|
||||||
%
|
%
|
||||||
|
Loading…
Reference in New Issue
Block a user