Forum Discussion
Wazza19762340
Oct 24, 2020Copper Contributor
TOC question
In a Table of Contents I only want to have page numbers on the first level (called TOC1 in my Styles). How can I remove page numbers from TOC2, TOC3 etc.... Thanks in advance
HansVogelaar
Oct 25, 2020MVP
Press Alt+F9 to display field codes. The TOC should look similar to this:
{ TOC \o "1-3" \h \z \u }
The exact switches after TOC might be different in your document.
Insert \n "2-9" before the closing bracket }. In the example above, it would look like
{ TOC \o "1-3" \h \z \u \n "2-9" }
The \n switch suppresses page numbers for the specified levels (here all levels below level 1, whether they are present or not)
Press Alt+F9 again, then update the TOC, choosing the option to update the entire table.