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.

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 would like to redefine subsections so that there is no empty line afterwards, only a new line, e.g.

Subsection name
bla bla bla

I have tried the

      {afterskip values}%

with several values, but I only seem to be able to get either an empty line or no linebreak at all

share|improve this question

article defines subsection as

                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%

the skip after is 1.5ex \@plus .2ex that is between 1.5 and 1.7 ex depending on the page contents. You can make that as small as you like but keep it > 0 otherwise you flag that you want a run in heading so {1sp} is as small as you can go.

share|improve this answer
thanks a lot! seems like i can not have the subsection start at the line exactly below its title :) – sofia May 28 '12 at 14:10
I'm not sure what you mean by that comment, TeX does not have any "lines" to which it fits text so the text after the title is the line below the title. Different font sizes have different preferred baselineskip but since the font size for the heading is different than the font size for the text there is no natural "line" distance. So you are free to make it whatever you wish. (1sp is the same as 0 unless you have an atomic microscope to hand so the fact that you need to set it to at least 1sp should not worry you – David Carlisle May 28 '12 at 14:57
(If it does worry you of course it is possible to redefine the latex section commands to always linebreak, but it really is not worth it for a change that may make no difference at all in the printed document when you consider the printer resolution) – David Carlisle May 28 '12 at 14:58

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.