TOC issues

Viewing 2 reply threads
  • Author
    Posts
    • #85276
      Rivkah Lewis
      Member

      Hi,

      I am generating a TOC for a long book full of short essays. What I’s like to see is the page number, tab, essay title in one style, comma, essay author in its own style.

      On the actual pages of book, the author’s name is the first style/text on the page.

      In the TOC dialog box, I selected the Title style and added it to “include paragraph styles” box on the left side.
      I then added the Author style underneath.

      I put an individual style on both and set the page number to sit before the Title style with its own character style. I set the Author style to have no page number. I was planning on bumping it up a line and changing it to a character style using find/replace.

      However, the author’s name appears before the title when the TOC is generated. I’ve tried switching the order, giving it levels – no matter what I change, the TOC generates with the author’s name and then on the next line, the page number followed by the essay title. There are around 100 of them, so I don’t want to change the order manually. I’m sure I must be doing something wrong.

      Can someone help me out?

    • #85277
      Ari Singer
      Member

      Until you figure it out (if it’s possible, because I’m afraid this how a TOC works) you can try to use the following GREP Find/Search to fix it:

      Find What: (.+)(\r)(\d+?\t)(.+)

      Change To:$3$4, $1

      What it says is this: “Find any amount of text, followed by a carriage return. Then the next line starts with a digit or more, followed by a tab, then any amount of text”. It then changes around the order of things, removes a return and adds a comma.

    • #85281
      Rivkah Lewis
      Member

      I was hoping there was an easy TOC solution, but thanks so much for this. I will try it out.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>