Next, select the formatting for the table of contents. Set the number of levels to display in the Show levels box. Click on the OK button.
When prompted whether to replace the existing table of contents, click on the OK button.
The table of contents should now display the number of levels that you just set.