Skip navigation

Manipulate table of contents results

Jul 5, 2012 5:50 AM

  Latest reply: Peter Spier, Jul 9, 2012 2:39 AM
Replies
  • Currently Being Moderated
    Jul 9, 2012 1:31 AM   in reply to gwhPoster

    a. Use this GREP style:

     

    (?<=\t).+

     

    This will look for a tab, then apply a character style of your choice to the rest of the line, excluding the tab (which might be important if you apply underlining).

     

    GREP styles are my favourite because I can express virtually everything I need with those -- they are so versatile! However:

     

    b. Use this Nested Style:

     

    [None] through 1 [Tab Characters]

    yourStyle up to 5 [Words]

     

    (The latter number is because I'm not sure how InDesign counts 'words'. There doesn't seem to be a "Up to End Of Line" code.)

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 9, 2012 2:39 AM   in reply to [Jongware]

    [Jongware] wrote:

     

    b. Use this Nested Style:

     

    [None] through 1 [Tab Characters]

    yourStyle up to 5 [Words]

     

    (The latter number is because I'm not sure how InDesign counts 'words'. There doesn't seem to be a "Up to End Of Line" code.)

    When I want to run a nested style up to the end of a paragraph in a situation like this I often just tell it to run up to an end nested character style marker and don't insert one. You can use any character that isn't encountered and the nested style will run to the end of the paragraph. In this particular case you could also "swap" the formatting and define the paragraph style the way you want the numbers to look, then apply a nested style through 1 tab to change the text ahead of it, then there's no need for a "none."

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points