Skip to content

Commit

Permalink
LaTeX: same signature-description vertical space as for sig-sig
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Jan 14, 2022
1 parent 6365412 commit 05ac877
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sphinx/texinputs/sphinxlatexobjects.sty
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@
\itemsep\sphinxsignaturesep
}
\newcommand{\pysigstopsignatures}{%
% 1) encourage a pagebreak in an attempt to try to avoid last
% signature ending up separated from description (due to voodoo next)
\penalty-100
% 2) some voodoo to separate last signature from description in a manner
% robust with respect to the latter being itself a LaTeX list object
\leavevmode\par\kern-\baselineskip\item[\strut]
%
\leavevmode
% it is important \leavevmode was issued before the \parskip reset, and
% it is also needed for the case of an object desc itself a LaTeX \list
Expand Down

0 comments on commit 05ac877

Please sign in to comment.