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

I am trying to make a subsection heading with the memoir class. The problem is the following:

I want to have a displayed heading for my subsubsection. The text should begin right after the subsubsec heading as a new line, and NOT as a new paragraph.

Memoir sets as a vertikal space after the headings the lenghts afterskip + \parskip(of heading font) + \baselineskip(of text font). To solve the problem, it would be plausible to set afterskip to -parskip. But, if afterskip becomes a negative value, the heading will turn into a run-in style.

I made my tests with the following minimal example:




\subsubsection{lorem ipsum}
lorem ipsum

lorem ipsum 

I used before the titlesec package, and it was excelent, till I not tried to use \titleref... This \titleref doesn't work with this package only for the chapters. If I dont't use titlesec, the references for sections working also good.

share|improve this question
up vote 4 down vote accepted

Here is a temp fix

    \vskip\z@\@plus -\bottomsectionskip
  \if@noskipsec \leavevmode \fi
  \@tempskipa #4\relax
  \ifdim \@tempskipa <\z@
    \@tempskipa -\@tempskipa \@afterindentfalse
    \addvspace{-\parskip}% <--- added

  \@tempskipa #1\relax
  \ifdim \@tempskipa>\z@
  \vskip \@tempskipa
  \vskip-\parskip% <--- added
     \begingroup \@svsechd \endgroup
     \@tempskipa #1\relax
     \hskip -\@tempskipa
    \clubpenalty \@clubpenalty
share|improve this answer

I've just removed the \parskip influence on the chapter spacings, might be an idea to also introduce this inside sectional constructions

One reason why this has not already been done is that for the most part, documents with no parindent and non-zero parskip are not particularly good for communication, especially if the document has many lists or displayed math.

share|improve this answer
Pardon? I don't really understand you :-) – Daniel Mar 2 '11 at 21:27
I maintain the memoir class – daleif Mar 2 '11 at 21:28
how does one remove a comment? – daleif Mar 2 '11 at 21:28
So you will make in the next time an update without parksip influence? If yes, when do you want to do it? – Daniel Mar 2 '11 at 21:32
@daleif Welcome to tex.sx! It's good to see some more c.t.t. people here as well. – Alan Munn Mar 2 '11 at 23:54

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.