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

GREP formula help

Explorer ,
Mar 28, 2023 Mar 28, 2023

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
778
Translate
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

LEGEND , Mar 28, 2023 Mar 28, 2023

Why GREP? why not just Nested Styles? 

 

Translate
LEGEND ,
Mar 28, 2023 Mar 28, 2023

Why GREP? why not just Nested Styles? 

 

Translate
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

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

nested.jpg

Translate
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

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

~Barb

 

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

Translate
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
Explorer ,
Mar 28, 2023 Mar 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...

Translate
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
LEGEND ,
Mar 28, 2023 Mar 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. 

 

Translate
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
Explorer ,
Mar 28, 2023 Mar 28, 2023

Cheers Robert

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

Translate
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