TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I set zero space after a section heading using memoir.cls? If I use the following:


I get a run-in heading. This is only supposed to happen when the specified skip is negative. Currently, I have


but that feels rather hackish.

share|improve this question
up vote 3 down vote accepted

Quoting from the LaTeX 2e sources, p. 283 (regarding the \@startsection command):

afterskip: if positive, then skip to leave below heading, else negative of skip to leave to right of run-in heading

In other words, a run-in heading is supposed to happen if the specified skip is exactly zero.

I suggest to use \setaftersubsubsecskip{1sp} -- it is a hack, but you're in good company. You may also switch to the titlesec package which allows for zero and negative afterskips that don't create run-in headings -- but titlesec might break other memoir features.

share|improve this answer
1sp should be sufficiently small not to be noticed, but still... And on the negativity of zero, that's debatable of course. The official definition is that it's neither, which makes the definition of afterskip above ambiguous. – Michel Mar 10 '11 at 10:15
It is LaTeX tradition from the kernel, and we follow it in memoir. BTW: In the recent memoir a non-zero \parskip no longer effect the spacing around the titles. – daleif Mar 10 '11 at 11:16
@Michel If you read what lockstep put carefully, it doesn't treat 0 as negative, but merely as not positive. – Seamus Mar 10 '11 at 13:11
titlesec should work with memoir as long as all your title fiddling is done through titlesec. You can't mix and match, but somewhere in memman.pdf it does say that it is compatible with titlesec. – Seamus Mar 10 '11 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.