Skip to main content
Community Expert
August 23, 2022
Question

TOC to include range of pages for sections

  • August 23, 2022
  • 3 replies
  • 220 views

Is there a way to generate a table of contents that includes the range of pages, as opposed to just the page the section starts? Example:

Section 1... 1-3

Section 2 ... 4-7

Section 3 .... 8

Section 4 ....  9-15

This topic has been closed for replies.

3 replies

Community Expert
August 24, 2022

Excellent advice from both @Peter Spier and @Dave Creamer of IDEAS 

 

You could also do this by building cross references instead of using the TOC feature.

https://helpx.adobe.com/ie/indesign/using/cross-references.html#:~:text=Choose%20Type%20%3E%20Hyperlinks%20%26%20Cross%2D,Reference%20button%20in%20the%20panel.

 

You'll need to sign up to see the article

https://creativepro.com/creating-cross-references-with-a-page-range-in-indesign/

 

 

 

Peter Spier
Community Expert
Community Expert
August 23, 2022

This may or may not help you...

Back around CS5 days I used to do an annual directory for local antique dealers that included an index to advertisers. Rather than a real index this was a TOC, and it often had more than one entry for some advertisers. Peter Kahrel was kind enough to write a GREP query that I could run at the end that consolidated the duplicates onto a single line and added commas between: ^(.+ )([\d, ]+)\r\1([\d, ]+)$

I expect this could be modified to show page ranges if you can generate a TOC entry for each page.

Peter Spier
Community Expert
Community Expert
August 23, 2022

I realized I forgot to include the change string: $1$2, $3

Dave Creamer of IDEAS
Community Expert
Community Expert
August 23, 2022

You could create an index and use it as a TOC.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)