Using InDesign CC 2021 I'm creating a TOC for a photo album. Working well except when more than one entry occurs for a name or place etc, the TOC lists them individually, and not by clustering them together as I expected. For example, I have the place Weggis about 6 times, and it gets listed on a separate line each time with the page number for that one entry. But I want to have "Weggis........5,36,41,72,99, " etc. Simply can't find the answer so wonder if there is anyone out there who knows the answer? Grateful thanks if you can help!
This is the kind of listing that is usually associated with an Index. You might have a look at that feature and see if it would suit your purposes for the TOC. Otherwise, you could use a brute force and have a find/change sequence that would probably clean it up for you.
Thanks Diane - I will have a go with the Grep query suggested below. I just thought there might be something fairly straightforward that I was missing.
I used to do an association directory with an included "index to advertisers" which was really a TOC. I had to consolodate lisings as you describe, and I used the following GREP query, which I think was actually written by Peter Kahrel:
^(.+ )([\d, ]+)\r\1([\d, ]+)$
Change: $1$2, $3
You might need to run it multiple times.
Thanks Peter - I'll try that. Much obliged.
You're welcome. Let us know if it works for you.