Step 1: Write down your article. Step 2: Go to the publish option. Step 3: Tick mark the ‘ Generate table of contents ‘ option Step 4: Then publish the article, and your table of content will be published.