Creating a Table of Contents in DITA
In other media, you need to tell DITA where the table of contents should
occur. For example, in a book you need to tell DITA where to place the table of contents in
the structure of the book, and if you want to generate other common content lists, such as a
list of figures or tables. You do this by using a
bookmap to define your book, and adding the appropriate elements
to the frontmatter.
To configure a table of contents and other book lists, follow these steps:
- Open your bookmap in the DITA Maps Manager.
- Right-click the bookmap and select . The Insert Reference dialog box appears.
-
Click Insert and Close to insert the
frontmatterelement. -
Right-click the
frontmatterelement and create abooklistelement using . -
Use the same steps to create a
tocelement and to add otherbooklistelements, such astablelist.