Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\addvspace after sections doesn't work properly #51

Open
u-fischer opened this issue Aug 26, 2022 · 1 comment
Open

\addvspace after sections doesn't work properly #51

u-fischer opened this issue Aug 26, 2022 · 1 comment

Comments

@u-fischer
Copy link

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

@jbezos
Copy link
Owner

jbezos commented Aug 26, 2022

See https://tex.stackexchange.com/questions/37258/addvspace-after-a-titlesec-heading) . I’ll study it, for more use cases and a possible option to change the behavior.

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

No branches or pull requests

2 participants