This task is easier than generating an index. Let us begin.
1- First, check the titles for each of your chapters and subchapters. For chapter titles, place the cursor on the text in each case, and take a look at the upper menu bar that indicates text-related options (fonts, styles, bold, text alignment, etc.). The extreme left option is a scroll menu indicating different styles. If that scroll bar is set to anything other than Heading 1 (if it’s set to Normal, for instance), then select the chapter title text and select Heading 1 from the style scroll bar. For subchapter headings, the scroll bar must be set to Heading 2 and if it is not, set the title to Heading 2. If you have subchapters that are subordinated to the subchapter, set those to Heading 3. This sets the document tree for use by the Table of Contents generator.
2- It’s a good idea to set the styles for Heading 1, Heading 2, Heading 3, and so forth before proceeding. This provides uniformity in the text and the entry of another chapter and subchapter would become easier as you can simply set the titles to Heading 1, Heading 2, or Heading 3.
3- Your titles are now set to Heading 1, Heading 2, Heading 3, and so forth in conformity with a well-defined document tree. You are now ready to set up and generate the Table of Contents. Put the cursor at the top of the document, or wherever you want your Table of Contents to appear. On the upper menu bar, click onto Insert and select Index and Tables…. By default, the tabbed dialog box is usually set to Index, so select the tab marked Table of Contents in order to have access to that interface.
4- On your left, you will find a scroll pane titled Formats. Next, you will see a pane marked Preview. To your right, you will find a series of buttons one on top of each other. By clicking on the different options on the Formats scroll pane, you can see a preview of the results of your selection. You will notice that the preview table of contents divides the output according to the document tree: Heading 1, Heading 2 and Heading 3. The preview allows you to see how these will appear in relation to one another depending on the selection from Formats.
5- Below the Formats scroll pane, you will see two checked boxes, one marked Show Page Numbers and the other marked Right align page numbers. De-selecting any of these changes the output in the Preview pane.
6- To the right of that are two small scroll panes, one marked Show Levels and the other marked Tab Leader. These are set to defaults that can be changed by manipulating the scroll pane; the results can be seen in the Preview pane above it.
7- More radical changes can be implemented by pressing either the Options... or Modify… buttons. As your previous work has set your document tree to match the default setup, you decide not to do this. After having settled on a look that you see in the Preview pane, press the OK button. This generates your Table of Contents.
8- You decide to modify the text, to enter new chapters, to change the order of the chapters, to add new text to an existing chapter, to carry out any editorial work you desire. Such changes put the text out of alignment with the table of contents. Right- click the Table of Contents so that it becomes shaded. A series of options are presented. Select Update Field. If you have modified only the text and not the structure, select Update page numbers only. If you have changed the document structure (added new chapters, for instance), select Update entire table.