Peter Bradley wrote:
I'm trying to add a TOC to my document - a paper I'm giving later this year. I've done what it says to do in the help:

Insert --> List / TOC --> Table of Contents

The 'Table of Contents' button appears and if I click on it, a listing appears in a window at the left. However no TOC appears in my dvi document, just the legend, 'Contents'.

I guess your document doesn't have anything that gets listed
in the TOC then. See below.


This is my first proper attempt to create a document using LyX, so I'm probably misunderstanding something at a fairly fundamental level. Apologies if that is the case.

The TOC will list chapters, sections, subsections and so on.
It will not list the unnumbered chapter*, section*, subsection* and so on. (The purpose of "section*" is when you want a heading, but no
entry in the TOC. And of course no number, it does not make sense
to number something that isn't listed in the TOC anyway.)

So make sure you use the numbered variants. If you don't want
to have numbers printed, use this menu:
Document->Settings->Numbering & TOC.

Here you can turn unwanted numbering off, and also decide what will be listed in your TOC. (Some people want subsections and subsubsections listed, some do not.)

Helge Hafting

Reply via email to