Table of Contents not display page number for one heading st

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

Table of Contents not display page number for one heading st

Post by diana »

for a Table of Contents is it possible to not display page number for one heading style.

Ive used custom heading styles and built a TOC
using TOC styles TOC1 & TOC 2

I would like to have heading style TOC2 (heading in orange) not display page numbers. ie dont display page "4"

Is this possible?

Ive been playing with the TOC field code switch " \n ". however this appears to not display page numbers for the whole TOC

any ideas?

many thanks

diana
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78627
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Table of Contents not display page number for one heading st

Post by HansV »

Add the switch \n 2-2 to the field code to suppress page numbers for level 2.
If you want to suppress page numbers for a series of levels, use for example \n 2-4
Best wishes,
Hans

diana
3StarLounger
Posts: 279
Joined: 01 Jun 2010, 00:27

Re: Table of Contents not display page number for one heading st

Post by diana »

thanks Hans that worked!

see my results
You do not have the required permissions to view the files attached to this post.