Copy link to clipboard
Copied
Hi,
I'm looking to generate a table of contents for a list of advertisers within a brochure.
There are five different categories of advertiser. Each type can appear on any number of pages, depending upon who the advertiser is. The categories are not specific to any set number of pages (unlike a section header would be).
Also, the TOC appears in a set order, as below:
Services
advertiser name......2
advertiser name......7
Retail
advertiser name.....3
advertiser name.....6
Out & About
advertiser name.....19
Education/Childcare
advertiser name.....14
advertiser name.....22
Health/Lifestyle
advertiser name.....9
advertiser name.....42
Now, I've been able to create five separate TOC styles, with the Title of each one being the category. However, that requires five separate text frames – a TOC for each category/heading.
I could stop there and be done, but I wonder if there's a way to do the above in one text frame?
Can anyone offer some pointers?
Hi JustyR:
This may be more work than you want, although once set up, updates will be easy. The background to understand is that while a TOC is a list of paragraphs (collected via specifying a paragraph style), an index is a list of markers (that you have to add yourself). Also note that a TOC is chronological, and index is alphabetical. You can override the sort order, but I would only do it for the top level (Services, Retail, Out & About, etc.). Are you Ok with the advertisers being listed in
...Copy link to clipboard
Copied
The only other idea I have is to create this as an index instead of a table of contents. You can control the sort order, and can make the section headings both tiny and white so as to be invisible. Services, Retail, etc as Topic Level 1s and advertiser names as Topic Level 2s.
Copy link to clipboard
Copied
Thanks for that. I'll have to have a play at the weekend.
Copy link to clipboard
Copied
You obviously know far more about indexes than I do (never used them before). Would you kindly help me out some more?
There are about 150 different advertisers, all different names. Not all of those advertisers end up in the magazine. Let's say there are about 50.
Currently, I have a CC Library of ALL the names, each assigned one of five Paragraph Styles, depending upon which category the advertiser comes under.
Those categories (Services, Retail, etc.) become the level 1 topics. Got that.
But how do I then assign all these different advertisers under their respective topics?
Ta
Copy link to clipboard
Copied
Hi JustyR:
This may be more work than you want, although once set up, updates will be easy. The background to understand is that while a TOC is a list of paragraphs (collected via specifying a paragraph style), an index is a list of markers (that you have to add yourself). Also note that a TOC is chronological, and index is alphabetical. You can override the sort order, but I would only do it for the top level (Services, Retail, Out & About, etc.). Are you Ok with the advertisers being listed in alphabetical order?
From Adobe: Create an index in InDesign
From me:
I know indexing is confusing for a non-indexer. There's about 35 minutes of online training here: Creating index topics and references
And here is a link for a 10-day free trial so that you can watch them for free.
Copy link to clipboard
Copied
Many thanks for taking the time to help me out.
I'm trying to get a script working that could save a lot of time - but in the meantime, it's a manual process, as you say.
Can those references under the topics be ordered by page number?
Copy link to clipboard
Copied
A TOC is presented in chronological order (in order of appearance in the document). An index is alphabetical. You can customize the sort order, but I think it would be too much work for the advertisers, if they keep changing. Hence my question, "Are you OK with the advertisers being listed in alphabetical order?".
I do a lot of long document layout, and because I charge by the job and not by the hour, what I ask myself every day is how fast can I do this, with the least amount of effort? In this situation, I would work with the client to accept the alphabetical presentation of the advertisers, if it were me.
Copy link to clipboard
Copied
It could be re-ordered by number using GREP, but that's a few extra steps. I think I'll end up using my five TOCs. Shame it has to end with not being able to order by number (for now).
Edit: here's a video to re-order an index by number: Sort an index by page number | InDesign | lynda.com - YouTube
Copy link to clipboard
Copied
Yep, the GREP/Sort/GREP option that David shows certainly keeps indexing in the running, without having to compromise the desired order.
In the end, it's your call. Hopefully I addressed your original question of a one frame alternative workflow.
I could stop there and be done, but I wonder if there's a way to do the above in one text frame? Can anyone offer some pointers?
Copy link to clipboard
Copied
You certainly did. Thanks. It's not without its pitfalls but I think it's better than five separate TOCs - or doing it manually, for that matter.
The painful thing was updating each CC Library item (text box with advertiser name inside - non-printing) with an index reference and topic. So when I drag those items into a magazine over each advert, it populates the index dialog box.
Sorting by page number wasn't possible with the Sample script. But I found this one instead:
Language-aware paragraph/line sorter | Peter Kahrel
Thanks for your help and tips. Enjoy the rest of your weekend.
Copy link to clipboard
Copied
Awesome! Glad I could help. And I hope you get to enjoy the rest of your weekend, as well.