Moreover, how to change the font size and style of the table and contents? If we can't give the numbering to subsubsection and at least we can change the font size of subsubsection to make it distinct.
Thanks a lot!

NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\setcounter{secnumdepth}{3}
Stefan_K wrote:Hi,
useTo customize the toc have a look at the tocloft package.Code: Select all
\setcounter{secnumdepth}{3}
Stefan
That's probably not necessary, because you are already using titletoc, i wouldn't use both together, but you could have a look at the tocloft documentation to get information.ggyyree wrote:Thanks a lot! Could you please say more about the tocloft package?
ggyyree wrote: How to display the nubering of subsubsection?
Code: Select all
\setcounter{secnumdepth}{3}
Use the \titlecontents command of titletoc, see titletoc documentation. Here's an example making the font smaller for instance with the article class:ggyyree wrote:And how to adjust the font size of the subsubsection? I have used titletoc package
Code: Select all
\titlecontents{subsubsection}
[6.5em]{}{\footnotesize\contentslabel{3.2em}}
{\hspace*{-3.2em}}{\titlerule*[1pc]{.}\contentspage}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p