[Tex/LaTex] customizing TOC

table of contents

I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like

Chapter 1.XXXXXX (1-15)

1.1 Introduction 1.2 xxxxxxxx 1.3 xxxxxxxxxx 1.4 xxxxxxx ……………

Chapter 2.xxxxxxx

2.1 xxxxx …… (16-30)

because the (default) TOC appears to be very large for my book, since it arranges the section name row-by-row.

Best Answer

An easy way to save space would be typesetting the table of contents in two or more columns. I've seen that some times, but I don't remember any book lining up several section titles in a row.

If you choose to typeset in two or more columns, that can be done easily using the multitoc package. You may use even more columns than the default two. Have a look at the documentation for an example.

Simply adding

\usepackage[toc]{multitoc}

would already show the table of contents in two columns. And, for example, add

\renewcommand*{\multicolumntoc}{3}

if you wish to have three columns.

Related Question