The best way to generate a table of contents is to apply the predefined heading paragraph styles, such as &quot; Heading 1 &quot; , to the paragraphs that you want to include in your table of contents.
生成目录的最佳方式是：对目录要包含的段落应用预设的标题段落样式（如“标题 1”）。