Skip to content

Commit

Permalink
Fix #10363: make howto LaTeX title page rule use \linewidth
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis authored and jfbu committed May 8, 2022
1 parent 27a62bb commit 6487529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -108,6 +108,8 @@ Bugs fixed
too much vertical whitespace
* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in
pdf output
* #10363: LaTeX: make ``'howto'`` title page rule use ``\linewidth`` for
compatibility with usage of a ``twocolumn`` class option
* #10318: ``:prepend:`` option of :rst:dir:`literalinclude` directive does not
work with ``:dedent:`` option

Expand Down
4 changes: 2 additions & 2 deletions sphinx/texinputs/sphinxhowto.cls
Expand Up @@ -42,7 +42,7 @@
% ``Bjarne'' style a bit better.
%
\newcommand{\sphinxmaketitle}{%
\noindent\rule{\textwidth}{1pt}\par
\noindent\rule{\linewidth}{1pt}\par
\begingroup % for PDF information dictionary
\def\endgraf{ }\def\and{\& }%
\pdfstringdefDisableCommands{\def\\{, }}% overwrite hyperref setup
Expand Down Expand Up @@ -74,7 +74,7 @@
\sphinxtableofcontentshook
\tableofcontents
\endgroup
\noindent\rule{\textwidth}{1pt}\par
\noindent\rule{\linewidth}{1pt}\par
\vspace{12pt}%
}
\newcommand\sphinxtableofcontentshook{}
Expand Down

0 comments on commit 6487529

Please sign in to comment.