LyXWhy aren't my chapters and sections appearing in TOC?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Why aren't my chapters and sections appearing in TOC?

Post by insipidtoast »

I've gone to the documents - settings menu and shifted the meter properly so that it says "Part" "Chapter" and "Section" appear in the table of contents.

My first image appeared in the list of figures section automatically. Yay!

However, my chapters and sections aren't appearing automatically in the table of contents??!

Is it because I do not have any "Parts" in my book?

Also what does the "numbered" meter do?
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Why aren't my chapters and sections appearing in TOC?

Post by kaiserkarl13 »

I don't use LyX personally, but I would guess that the meter in question sets the value of the "tocdepth" counter in LaTeX. My guess is that the "numbered" meter sets the "secnumdepth" counter, which determines which sections are numbered. Typically only numbered sections appear in the table of contents, regardless of these settings.

Posting an example will help us to solve the problem more effectively.
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Why aren't my chapters and sections appearing in TOC?

Post by insipidtoast »

What example? and how do I post it?
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Why aren't my chapters and sections appearing in TOC?

Post by insipidtoast »

Nevermind!

Futzing = the magical answer.

I figured it out just by messing around with the sliders in the document - settings - numbering & TOC menu. I moved the numbering slider so that everything said no, and moved the List in TOC slider so that only Part, Chapter and Section said yes.

Then from the drop down menu, I had to change my headers, which I had selected from the dropdown: "*unnumbered" section. I had to select the equivalent options from the dropdown: "section" section.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Why aren't my chapters and sections appearing in TOC?

Post by localghost »

Looking at all your questions, I have the impression that you only need to read a bit more documentation, especially about LyX and its settings. Also a closer look at the LyX Wiki would do any harm.
Post Reply