TOC to include range of pages for sections

Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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

TOPICS
How to , Type

Views

45

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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

 

David Creamer: Community Expert, Adobe Certified Instructor, and Adobe Certified Expert (since 1995)

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

LATEST

Excellent advice from both @Peter Spier and @Creamer Training 

 

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%20Hyperl....

 

You'll need to sign up to see the article

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

 

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines