LyX*Subsubsection - how to remove from TOC

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Gumbare
Posts: 11
Joined: Wed Dec 08, 2010 5:24 pm

*Subsubsection - how to remove from TOC

Post by Gumbare »

Hi,
I have a book. There are chapters, sections, subsections and subsubsections(*) in it.
How can I remove subsubsection* (unnumbered) from TOC (Table of Contents)?
I don't want it indexed and printed in TOC.

greetings
Last edited by Gumbare on Fri May 13, 2011 12:46 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

*Subsubsection - how to remove from TOC

Post by Montag »

This is a good opportunity to use lmgtfy. :)

http://www.lmgtfy.com/?q=latex+toc+depth
=>
Solution should be given in the first search result.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Gumbare
Posts: 11
Joined: Wed Dec 08, 2010 5:24 pm

*Subsubsection - how to remove from TOC

Post by Gumbare »

Thanks,
for me the solution is this:

Code: Select all

\setcounter{tocdepth}{2}
You can use 1, 2, 3, 4. (4 prints everything down to paragraph).

NOTE:
I'm not afraid of using Bing or Google, but the biggest problem for non-English natives sometimes is find the exact wording and syntax of what you actually are looking for.
And unfortunately Google is still stupid enough not to help you with that.
I did use that search engine and wiki before posting here.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: *Subsubsection - how to remove from TOC - [solved]

Post by Stefan Kottwitz »

Hi Gumbare,

it's very good that you also posted the solution you found!

Stefan
LaTeX.org admin
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

*Subsubsection - how to remove from TOC

Post by Montag »

Gumbare wrote: NOTE:
I'm not afraid of using Bing or Google, but the biggest problem for non-English natives sometimes is find the exact wording and syntax of what you actually are looking for.
And unfortunately Google is still stupid enough not to help you with that.
I did use that search engine and wiki before posting here.
Same here. Reminds me of my beginnings ... :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply