2. Select the title of the first part, and then click "Title II". Other chapters are also set in this way. The chapter is set to heading one and the section to heading two.
3. Then click "Reference", select "Insert Directory" and click "OK".
4. Finally, automatically generate a beautiful directory.