Karakas Online

5.11. Table of contents

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)
Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/lyx-table-of-contents.html All contents © 2002-2007 Chris Karakas