Tying your heading styles to the table of contents tool can make your final product more useful.
Now we need to add a table of contents to our document. The table of contents tool looks for styles we have incorporated into the document. It looks for markup in the document and uses the markup it sees.
So, now we will create a table of contents.
The table of contents tool places the object it creates in the location where the cursor is located at the time the "insert" command is executed. So we need to have a place created in which the table of contents is to be inserted.
We have entered the words "Replace this sentence with the ToC you will create here and will do that by selecting the words to be replaced, to let the tool know where to place the table of contents.
We can choose what to display in our Table of Contents.
In our document, we have used headings 1-4 to identify particular parts of the document. However, we will want the ToC to show only the major subdivisions, marked by headings 1 and 2 only.
Our options permit us to map only the ToC Levels 1 and 2, and to have them displayed with 2 subordinate to 1 in the ToC itself.
Having said "OK" to the options, and "OK" to the Table of Contents dialog box, we have a nicely formatted table of contents on page iii of our document.