Is it possible to create a TOC with section headings in one color and subsection headings in different color.
\tableofcontents
\setcounter{tocdepth}{2}
I am using above lines to create TOC, do I need to use any special package?
colortable of contents
Is it possible to create a TOC with section headings in one color and subsection headings in different color.
\tableofcontents
\setcounter{tocdepth}{2}
I am using above lines to create TOC, do I need to use any special package?
Best Answer
You could use the
tocloft
package for customizing the table of contents.Without an additional package, you could modify the class macros which are responsible for the table of contents entries, such as
\l@section
and\l@subsection
.Here is an example for the
article
class: