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 want to change style of table of contents which is given by \tableofcontents, (say I do not want that much space between lines and some I want the subsections to be listed in one line).

How can I do that?

(So far I can only edit toc-file by hands, which is not a good solution.)

share|improve this question

The short answer for almost all TOC, LOF, LOT, etc. customisations is first to see if you can achieve what you want using the tocloft package. Nine times out of ten, you'll be able to.

share|improve this answer

To complement @Geoffrey's answer, note also that if you use the memoir class, the tocloft is included (reproduced ?) and you can use the same functionalities. The memoir manual has a complete chapter about the customization of the ToC, LoF, LoT.

share|improve this answer

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.