Skip to main content
MattheausG
Known Participant
March 28, 2023
Answered

GREP formula help

  • March 28, 2023
  • 4 replies
  • 806 views

Hello all

I want to apply a Character Style to a Paragraph Style via GREP which applies said Character Style up to an Indent to Here, but struggling to make it work 

Can anyone help me with this query please

This topic has been closed for replies.
Correct answer Robert at ID-Tasker

Why GREP? why not just Nested Styles? 

 

4 replies

Barb Binder
Community Expert
Community Expert
March 28, 2023

Personally, I use an en space between my note number and contents so that's how I handle it. 

 

~Barb

 

~Barb at Rocky Mountain Training
Barb Binder
Community Expert
Community Expert
March 28, 2023

Exactly, as per @Robert at ID-Tasker. We need GREP for pattern matching. A nested style does exactly what you are asking for.

~Barb

 

~Barb at Rocky Mountain Training
MattheausG
Known Participant
March 28, 2023

Yes, I have it set up on a Nested Style presently

I guess that will do.

To give a full explanation, it is to style up footnotes and what I really want to happen is the cavaet symbols, such as an asterisk, dagger, double asterisk etc appear in a different font size and baseline shift to the other copy in that paragraph
So it could be achieved with a positive look behind from the first 'space' character and ideally I only want the characters to switch to the Character Style and not the tab characters which flank it / attached screenshot. Maybe I am overthinking it...

Robert at ID-Tasker
Legend
March 28, 2023

Yes, you are 😉 

 

As you need to ONLY style first one / few characters - up to a specific character - there is no need to bring big guns 😉 GREP will slow down your InDesign significantly. 

 

Community Expert
March 28, 2023

You don't necessarily need a GREP style to do this, you can use a Nested style:

Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
March 28, 2023

Why GREP? why not just Nested Styles?