How to add a table of contents in LibreOffice Writer. Table of contents. The tutor starts off by explaining how to add a heading style to a document, and then, if required how to change the style. The tutor goes on to insert a table of contents which picks up all the heading styles and references them. The tutor explains how to update the table of contents if any pages are added or deleted. In the second part of the video the tutor covers how to add an index reference. The tutor mentions that you will have to select all the entries that you want to appear in the index. Once all the entries have been added the Index is inserted from the table of contents menu. The index style and layout can be changed if required. This is a LibreOffice Writer tutorial covering, table of contents, index references and styles.