The Table of Contents feature relies on the use of Styles in a document. The feature works “out-of-the-box”: it is based on the default Heading 1, Heading 2 and Heading 3 styles and if you simply apply those in your document you are able to insert a Table of Contents from the References menu. The default Table of Contents lists each heading along with the page number on which it occurs using tabs with leader lines. Each level of heading is indented, representing a hierarchy of heading levels. Each item in the list is also a hyperlink to the relevant part of the document.
The Table of Contents can be customized in a number of ways. You can map your own set of styles to the different levels of the Table of Contents and you can change the number of levels included and there are a number of formatting options. You can map multiple styles to each level as well.
Anything (and I do mean any “thing”) that is formatted with one of the included styles will appear in the Table of Contents. This means that if for example, you insert an image in a line/paragraph that has a style applied, or if you apply a style while an image is selected, that image will appear in the Table of Contents.
The Table of Contents does not update automatically as the document is edited; updates must be performed manually by clicking on the field to select it, then either right-click updating the field or clicking on the Update Table… button at the top of the field. Customised page numbering will be reflected in the Table of Contents if it has been used in the document.