• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

GREP formula help

New Here ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

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

TOPICS
How to , Type

Views

217

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 28, 2023 Mar 28, 2023

Why GREP? why not just Nested Styles? 

 

Votes

Translate

Translate
Community Expert ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

Why GREP? why not just Nested Styles? 

 

ID-Tasker - most powerful tool ever created for InDesign

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

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

nested.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

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

~Barb

 

2023-03-28_07-29-50.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

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. 

 

ID-Tasker - most powerful tool ever created for InDesign

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

Cheers Robert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

LATEST

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

 

~Barb

 

2023-03-28_11-11-00.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines