0

https://tex.stackexchange.com/a/11669/174620 This answer worked very well for setting the counter to zero for sections. I want similar command for subsection. I tried \setcounter{subsecnumdepth}{0} which gave No counter 'subsecnumdepth' defined.}\\\setcounter{subsecnumdepth}{0} this error. Is there any way for setting subsection counter 0?

1

With \setcounter{secnumdepth}{0}, all subsections already are unnumbered. (If you want numbered sections but unnumbered subsections, you can use \setcounter{secnumdepth}{1}.)

To include the subsections in the table of contents, use \setcounter{tocdepth}{2}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.