LyX ⇒ Cannot suppress subsections in TOC with LyX+Memoir
Cannot suppress subsections in TOC with LyX+Memoir
I have been going crazy trying to suppress subsections in the TOC of a book I'm writing with LyX+Memoir (+LuaTeX). I have set the LyX sliders so that subsections should not appear, and added various commands to my preamble such as \settocdepth{section}, \setcounter{tocdepth}{1}, \maxtocdepth{section}, \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}, and so on, but nothing works. I have tried \tableofcontents, \tableofcontents*, \tableofcontents[hideallsubsection], etc. I can stop the numbering of subsections (which I don't want), but I can't get them out of the TOC. I'm not using hyperref at all, so that can't be the problem. Any idea what else I can try?
Thanks,
Steve
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p