GeneralHow to give the numbering for \subsubsection please?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ggyyree
Posts: 21
Joined: Mon Sep 15, 2008 6:32 pm

How to give the numbering for \subsubsection please?

Post by ggyyree »

How to give the numbering for \subsubsection please? I use \setcounter{tocdepth}{3} to show the subsubsection in my table of contents; however, there is no numbering of the subsubsection which makes it is hard to distinguish the subsection and subsubsection and each subsubsection.

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! :ugeek:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to give the numbering for \subsubsection please?

Post by Stefan Kottwitz »

Hi,

use

Code: Select all

\setcounter{secnumdepth}{3}
To customize the toc have a look at the tocloft package.

Stefan
LaTeX.org admin
ggyyree
Posts: 21
Joined: Mon Sep 15, 2008 6:32 pm

How to give the numbering for \subsubsection please?

Post by ggyyree »

Thanks a lot! Could you please say more about the tocloft package? How to display the nubering of subsubsection?
And how to adjust the font size of the subsubsection? I have used titletoc package and I have some other settigs for my table of contents. Will these tocloft and tiltletoc conflicted?

Cheers!
Stefan_K wrote:Hi,

use

Code: Select all

\setcounter{secnumdepth}{3}
To customize the toc have a look at the tocloft package.

Stefan
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to give the numbering for \subsubsection please?

Post by Stefan Kottwitz »

ggyyree wrote:Thanks a lot! Could you please say more about the tocloft package?
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: How to display the nubering of subsubsection?

Code: Select all

\setcounter{secnumdepth}{3}
is already enough.
ggyyree wrote:And how to adjust the font size of the subsubsection? I have used titletoc package
Use the \titlecontents command of titletoc, see titletoc documentation. Here's an example making the font smaller for instance with the article class:

Code: Select all

\titlecontents{subsubsection}
  [6.5em]{}{\footnotesize\contentslabel{3.2em}}
  {\hspace*{-3.2em}}{\titlerule*[1pc]{.}\contentspage}
Stefan
LaTeX.org admin
ggyyree
Posts: 21
Joined: Mon Sep 15, 2008 6:32 pm

Re: How to give the numbering for \subsubsection please?

Post by ggyyree »

Thank you very much! It is enough :mrgreen:
Post Reply