I would like to combine both section numbering and bullets in the table of contents of a document of article class just to avoid so much long section number (for example 1.2.1.1.1).
So, I would like to have something like this:
1. First section
1.1 First subsection
1.2 Second subsection
1.2.1 First subsubsection
· First paragraph
· Second paragraph
- First subparagraph
1.3 Third subsection
2. Second section
How can I modify the table of contents to put those bullets instead of numbers?
Best Answer
The entries for
\paragraph
and\subparagraph
in the table of contents are set by the macros:\l@paragraph
and\l@subparagraph
. Usually the class contains their definition. Example for classarticle
:The arguments for
\@dottedtocline
are:\paragraph
).\numberline
.\contentsline
). If a number is given, it starts with\numberline{...}
right before the section title in the same argument.The following example redefines the macros
\l@paragraph
and\l@subparagraph
:\@dottedtocline
are updated to respect the smaller numbering using symbols only.\numberline
for formatting reasons.