LyX provides its own command for the creation of a Table of Contents (from the menu: Insert-->Lists&TOC-->Table of Contents) - but you should not use it! Whether a table of
contents will be created or not is entirely controlled by the stylesheets (see Section 4.2 and Section 7.1.5). For
example, the following code in a stylesheet specifies that a Table of Contents has to be created for document type “Article”:
(define %generate-article-toc%
;; Should a Table of Contents be produced for Articles?
#t)
|