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.)