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.

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
add comment

2 Answers

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
add comment

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
add comment

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.