Could I ask another related question? I've got my TOC looking like this now:
heading content [tab] ¶5-105
How would I create a nested style so that the ¶5-105 is coloured separately from the rest of the TOC entry? I've looked into the nested styles but it only lets you target areas "up to" or "through". How can I say colour everything "after the tab"?
Appreciate any further help.
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.)
[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."
North America
Europe, Middle East and Africa
Asia Pacific