Skip to content

\addvspace after sections doesn't work properly #51

@u-fischer

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions