You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With package option largestsep, titlesec does not use the larger skip, but instead use the sum of <after-sep> from the first heading and <before-sep> from the second heading.
titlesec uses \vspace to add <after-sep>, and this is the bug.
In the LaTeX2e kernel \vspace{#1} expands to ... \vskip #1 \vskip\z@skip ..., so when the next <before-sep> appears in \ttl@titlespace{<before-sep>} (since \let\ttl@titlespace\addvspace in this case), the \addvspace acts on \z@skip and not the intended <after-sep>.
The text was updated successfully, but these errors were encountered:
Brief description of the bug
With package option
largestsep
,titlesec
does not use the larger skip, but instead use the sum of<after-sep>
from the first heading and<before-sep>
from the second heading.MWE demonstrating the issue
MWE adapted from https://tex.stackexchange.com/q/269484 with more exaggerated spacing:
Possible fixes
titlesec
uses\vspace
to add<after-sep>
, and this is the bug.In the LaTeX2e kernel
\vspace{#1}
expands to... \vskip #1 \vskip\z@skip ...
, so when the next<before-sep>
appears in\ttl@titlespace{<before-sep>}
(since\let\ttl@titlespace\addvspace
in this case), the\addvspace
acts on\z@skip
and not the intended<after-sep>
.The text was updated successfully, but these errors were encountered: