Skip to content

\addvspace after sections doesn't work properly #51

Description

@u-fischer

Without titlesec the \addvspace is work as expected and adds only minimal additional space:

\documentclass{article}
%\RequirePackage{titlesec}

\begin{document}
\tableofcontents

\section{a}
text
\section{b}\showthe\lastskip
\addvspace{1em}
text
\end{document}
> 9.90276pt plus 0.86108pt.
l.106 \section{b}\showthe\lastskip

image

If one uncomment titlesec \lastskip is zero and so the full addvspace is added. This also affects the tableofcontents which has now inconsistent spacing compared to normal sections:

> 0.0pt.
l.106 \section{b}\showthe\lastskip

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions