The table of contents in Google Docs can be generated to help keep the information in your document organized and easy to navigate. The table of contents automatically links to different parts of your documents and also works if you have your document published.
Please note: The formatting and contents of a table of contents are based on the headings in your document. To change the text of the table of contents, you will need to edit the headings. If you make changes to the formatting of your document, you may need to update your table of contents to reflect the latest organization.
To create a table of contents, follow these steps:
Add headings to your document by clicking Format > Paragraph styles in the toolbar, and selecting a heading, or by selecting from the dropdown in the Styles toolbar.
Place your cursor where you would like the Table of contents to appear.
Click Table of contents from the Insert menu.
If you need to move the table of contents, select it as you would select text and either move it with your cursor or cut it and paste it.
You can continue to add headings to your document or change current headings. However, if you'd like a change to become part of the table of contents, you need to click first the table and then the Update now button.
Each item in your table of contents links to the titled sections of your document that use the heading styles (that you added in step 1 above).