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?

  • Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Torbjørn T. Aug 30 '12 at 18:31
  • I guess you mean Document -> Settings… -> Numbering & TOC, right? What do you mean by “It won't let you modify anything”? You can't move the slide (is that the right word?) above the window? – cgnieder Aug 30 '12 at 19:08

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.

  • 2
    I'd put it in the preamble (Document --> Settings --> LaTeX preamble). – Torbjørn T. Aug 30 '12 at 18:31
  • @TorbjørnT. Yes, that is a better idea. – Jonatan Aug 31 '12 at 19:37

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.