Change the order of book TOC

Markup to change where the book's table of contents is positioned

You can change the order of the book TOC in the preliminary matter pages. The book TOC is generated automatically from <title> elements, so XML markup is needed to specify where the TOC appears in the output PDF.

XML markup to edit

The preliminary matter pages (e.g. executive summary, preface, foreword, acknowledgments) are all marked up in separate XML files using the <preface> element. To control whether each <preface> page occurs before or after the book TOC, use the following markup:
XML markup Value
<preface role="beforetoc"> This puts the XML file before the book TOC
<preface role="aftertoc"> This puts the XML file after the book TOC
Note: Also see the section Change the order of book LOTs.

The following diagram shows how the preliminary matter pages are positioned using the above XML markup. Diagram showing table of contents between the foreword and preface marked up with role equals aftertoc

Stylesheet settings to edit

There are no stylesheet settings to edit to change the position of the book TOC.