Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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
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 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
3  
@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
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 Mar 10 '11 at 13:13

Your Answer

 
discard

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.