You can define the table of contents in the common/table-of-contents.html template file and customize the appearance of the table of contents, including:
- The title
- The indentation of items
- The color
Example of changing the title of the table of contents for a document
Let’s assume you want to change the default title Table of Contents for a document to Index.
To change the default title Table of Contents
- Open the <template folder>/common/table-of-contents.html file.
- Find the h1 element with a value of Table of Contents within the html body element, and change its value to Index:
… <body> <h1>Index</h1>
If a document is exported using the updated template, the new table of contents title Index would appear as the title of the table of contents:
