[Tex/LaTex] Lyx: remove subsections from table of contents

lyxtable of contents

I don't want subsections to appear in the table of contents of my Lyx document. How do I turn them off? I went to Tools -> Settings -> Numbering & TOC, but it won't let me modify anything.

What should I do?

Best Answer

Can you use \setcounter{tocdepth}{2}? You would need to insert this as a LaTeX command via the Insert-> TeX menu, and I'm not entirely sure about the number, it might also be 1 or 3.

There is more information about document structure in LaTeX here.