Controlling table of contents (TOC) depth (no sub-subsections)

Is there a way to make the TOC only display sections and subsections but not sub-subsections. In Latex I believe there is a macro called \tocdepth


Hi @guraltsev!
I believe this topic may help you:

1 Like

Thanks. Based on reading that post and in particular the comment

I solved the problem by adding the code:


to my preamble. It was somewhat guesswork because I could not find a direct reference to the macro subsubsection-toc. But it works! Thanks!


Some macros are generated by other macros programmatically, that is why usually you cannot access the definition. I guess you should look for <compound| * | -toc>.

1 Like