3

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

\setbeforesubsubsecskip{-\baselineskip}
\setaftersubsubsecskip{0pt}

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

\setbeforesubsubsecskip{-\baselineskip}
\setaftersubsubsecskip{0.0001pt}

but that feels rather hackish.

1 Answer 1

4

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.

4
  • 1
    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
    Commented Mar 10, 2011 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
    Commented Mar 10, 2011 at 11:16
  • 3
    @Michel If you read what lockstep put carefully, it doesn't treat 0 as negative, but merely as not positive.
    – Seamus
    Commented Mar 10, 2011 at 13:11
  • 1
    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
    Commented Mar 10, 2011 at 13:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .