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


A manual with chapters, sections, subsections, and sub-subsections. Using KOMA Script v2.


The spacing between the heading title and its number is too close to the number in some cases:

enter image description here

After reading the tocloft package, I do not see how to adjust the spacing between the heading title and the number.


How do you increase the space before the section title a consistent amount?


Tried including the following package:


Tried setting linewidth:


Tried setting the dottedtocline:


The last attempt looks promising, but it is tricky to adjust the margins correctly.


share|improve this question
up vote 7 down vote accepted

Adjust the title margins individually:


If there was a way to do this relative to the old values (by adding spacing), rather than writing over the old values, that would be nice to know. The result:

enter image description here

share|improve this answer
By all means, it's encouraged that you answer your own question, but it's also encouraged to wait a bit longer with that. – Hendrik Vogt Mar 17 '11 at 8:49
@HendrikVogt: The spacing for my contents is fine, but do you know if there's a way to do a similar thing, but instead for lists of figures and of tables? – jdc Apr 15 '15 at 23:55

For me, tocstyle produces correct horizontal spacing with both standard and KOMA-script classes. Try to compile my example with three or even four LaTeX runs -- maybe the makefile you use doesn't recognize that tocstyle needs yet another LaTeX run to calculate the ToC spacing.







Some text.

share|improve this answer
Thanks for this. I'm not sure if this is an exact reproduction of the problem, though. The preamble for this manual is 1000 lines long. Inside I have set different fonts. Also, I'm using tocloft, not tocstyle (if that matters). – Dave Jarvis Mar 17 '11 at 0:27
@Dave: Yes, it matters. My suggestion boils down to use tocstyle instead of tocloft. – lockstep Mar 17 '11 at 0:33
@Dave: One of the features of tocstyle is automatic calculation of ToC spacing instead of using fixed pre-set values. – lockstep Mar 17 '11 at 0:37
Substituting tocstyle for tocloft results in a lot of "Undefined control sequence" errors that I have neither the time nor inclination to resolve. One day, perhaps, latex will generate errors that are a bit more meaningful to the lay person. I do appreciate you taking the time to suggest an alternative, though! – Dave Jarvis Mar 17 '11 at 0:45

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.