An automatic table of contents for your thesis in Word, and how to fix it when it goes wrong
A table of contents typed by hand goes out of date the moment a page moves, and format reviewers check that every entry matches its heading and its page. Word builds one for you, but only from headings that use its heading styles.
1. Put real heading styles on your headings
- Click in a chapter title and choose Home › Styles › Heading 1.
- Sections (2.1, 2.2) get Heading 2; subsections (2.1.1) get Heading 3.
- Front-matter headings that belong in the contents (Abstract, Acknowledgements, List of Tables) usually get Heading 1 as well. The title page heading does not.
Headings that only look like headings (bold, larger text) will not appear. To change how Heading 1 looks everywhere at once, right-click it in the Styles gallery and choose Modify, instead of formatting each heading by hand.
2. Insert the contents page
- Click where the contents page goes and choose References › Table of Contents › Custom Table of Contents.
- Set Show levels to the depth your manual allows (often 2 or 3), choose the dot Tab leader if your manual wants dots, and keep Show page numbers and Right align page numbers ticked.
3. Lists of tables and figures from real captions
- Select a table, choose References › Insert Caption, label Table, position Above selected item; for a figure, label Figure, Below selected item (unless your manual says otherwise).
- Then References › Insert Table of Figures, caption label Table for the list of tables, and again with Figure.
A caption typed as ordinary text ("Table 3: Results") is not picked up: Word's lists find captions made with Insert Caption (or, through Options in the Table of Figures dialog, every paragraph in the Caption style, tables and figures together). If you typed them by hand, inserting them again with Insert Caption is the clean fix.
4. Update it at the end
Click in the text, press Ctrl+A, then F9 (Mac: Cmd+A, then Fn+F9), and choose Update entire table. Do this after your last edit and before you save the PDF.
Fixing a contents page that is wrong
- A heading is missing: it has no heading style. Apply Heading 1, 2 or 3 and update.
- A sentence or a caption appears as an entry: that paragraph has a heading style or an outline level. Give it the Normal style, or set Paragraph › Outline level › Body Text.
- Every page number is 0 or wrong: the fields were never updated. Press Ctrl+A, then F9 in desktop Word.
- "Error! Bookmark not defined": the entry points at a heading whose hidden bookmark is gone. Update the whole table; if the error stays, remove the table (References › Table of Contents › Remove Table of Contents) and insert it again.
- An old typed contents page is still there: delete it once the automatic one is correct; keeping both confuses reviewers.