Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

Any one know how to automate categories with in a ToC? I'm trying to get ...

cars

  • item 1
  • item 2
  • item 3
  • item 4

trucks

  • item 5
  • item 6
  • item 7

Right now each page has "Cars(or trunks) | item" in it. I'm getting ...

cars

  • item 1

cars

  • item 2

cars

  • item 3

cars

  • item 4

trucks

  • item 5

trucks

  • item 6

trucks

  • item 7
share|improve this question

2 Answers 2

up vote 1 down vote accepted

When you set up the TOC, style your text so that Category and Item each have a unique style.

Then set up your TOC so that the first item uses Paragraph style "Category," but with no page number. The second item should be "Item" with a page number.

share|improve this answer
    
Thanks for the response. Thats how I have it setup now, the problem is I don't want it to display the chapter (i.e. car, truck) for every row in the ToC. I just want it display once at the start of the chapter. –  Ryan Grush Feb 15 '12 at 19:08
1  
you might have to do a little manual work. Maybe find the first page of the chapter, duplicate your Category style, and call it CategoryFirst. Manually change the style on the first page to CategoryFirst and change the TOC. Or I'm sure Alan has some amazing GREP thing to fix it with one press of a button. :) –  Lauren Ipsum Feb 15 '12 at 19:20
    
Thats the conclusion I'm coming to :( Thanks, you've been very helpful. –  Ryan Grush Feb 15 '12 at 19:50
    
@LaurenIpsum No, not GREP, but there are various ways to skin this cat. I'd likely use your suggestion if it weren't for the fact that this whole workflow is being automated by Data Merge. –  Alan Gilbertson Feb 19 '12 at 4:10

The result you're getting stems from the fact that you have your category (chapter) name repeating on every page as a result of your data merge, and you're using that as the first-level TOC entry.

Following on from my earlier answer about using the Book Panel, you could simplify this problem by dividing your .csv file into separate files by category. Make each category a separate document in your book, then use this sneaky trick:

  • Set up a new paragraph style called "TOC Category" or something similar.

  • On the first page of each book chapter, add a text frame on the pasteboard (not on the page) and type in the category name. Give this text the "TOC Category" style.

  • Change your TOC Styles to use the new TOC Category style instead of the original.

If I knew more about the workflow involved I could probably come up with some other suggestions, but this should at least ease the pain.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.