I would like to have the Table of Contents only include Heading 1 and not any of the others. Is there a way to set the table to contents to NOT include certain headings?
Unfortunately Google Docs does not support hiding specific heading levels.
The only "solution" would be to change the headers you want to hide to the "Normal" style, then manually set the font formatting for each heading.
The only way to avoid all headings from being added to the TOC is to manually apply the style you want rather than using the set styles. Change those headers to "Normal" style by select each one individually and pressing Ctrl + \ (Control plus the backslash key). This will remove the formatting. Then manually add the point size, font, and bolding that you want.
To easily copy formatting from one place to another, you can use the Paint Tool. So once you manually change one heading, you can use the Paint Tool to change others that are the same level heading.
The previous answers suggests setting the style of headers to "Normal" and manually setting their style to look like a header. If you do so, you will lose the ability to link to that header from within the document.
It looks like you can actually manually delete items from the table of contents. I think that's a simpler approach.
What I did to solve the problem which is probably doc specific, but I was using H1 through H3, what would have been H4 I didn't want to show up in the TOC. I converted all the H4's to Subtitles, then styled Subtitles the way I wanted it.
Subtitles don't show up in the TOC.
From what I can, tell this action is impossible on Google Docs, as other answers have mentioned. However, it would appear that there is another way if you have access to Microsoft Word:
Export the document into a .docx from Google Drive, which can be done when selecting what form you wish to download the document in. Then open this in Word and alter the table of contents using the following guide: https://support.office.com/en-us/article/format-or-customize-a-table-of-contents-9d85eb9c-0b55-4795-8abb-a49885b3a58d#layout
- Select the drop down list from
References>Table of Contentsfrom the top bar.
Custom Table of Contents...from the list.
- To change the number of levels displayed in your table of contents, click
Show levels, and then click the number of levels you want.
I haven't tested this so I'll edit the answer with more feedback.
Yes, there's a workaround for this, and you can keep your heading structure.
- At the top of your doc, write out the text that you want to show in your table of contents. For example Chapter 1, Chapter 2
- Select the first phrase, and make it a hyperlink.
- You'll see options for the link, including selecting an existing heading.