First, set the title format?
1, select all the first-level titles in the article;
2. Click the title 1 on the start tab, as shown; ?
Imitate steps 1 and 2, and set the format of secondary and tertiary headers as header 2 and header 3.
Second, automatically generate the directory?
1. Position the cursor to the location where you want to insert the directory; ?
2. click reference-> directory-> insert directory, as shown in the figure?
3. Pop up the Directory dialog box, select the Directory tab, make relevant settings, and click OK to automatically generate the article directory.