Hey,
I write a report in documentclass{memoir}, but have a problem with \tableofcontents.
I look for a easy way to get \settocdepth{subsection}, but the problem is that there don't come numbers in the begin for \subsection. That's to say:
1 Section
1.1 subsection
subsubsection
subsubsection
But I want to
1 Section
1.1 subsection
1.1.1 subsubsection
1.1.2 subsubsection
Thanks for you time
./tym
Document Classes ⇒ memoir | Table of Contents and Depth
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
memoir | Table of Contents and Depth
Please always provide a minimal example that shows the problem clearly. Otherwise it becomes nearly impossible to help. Especially when a problem is more complicated.
You also have to set the depth for section numbering accordingly to get the subsections listed numbered in the ToC.
See Section 6.3 of the memoir manual.
By the way, your understanding of headings levels is wrong in this case. The memoir class only simulates an article by adapting the appearance of the headings. Though you seem to write an article, you are working with chapters at the top level. So your list is a bit misleading.
Thorsten
You also have to set the depth for section numbering accordingly to get the subsections listed numbered in the ToC.
Code: Select all
\documentclass[11pt,article,english]{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}
\setsecnumdepth{subsection}
\settocdepth{subsection}
\begin{document}
\tableofcontents*
\blinddocument
\end{document}
By the way, your understanding of headings levels is wrong in this case. The memoir class only simulates an article by adapting the appearance of the headings. Though you seem to write an article, you are working with chapters at the top level. So your list is a bit misleading.
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10