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.