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

Nested style including two or more sentences

Enthusiast ,
Jun 23, 2024 Jun 23, 2024

Copy link to clipboard

Copied

I want to apply char style to a word or sentence containing 1 or more words and ending with a  ":"

After that there may be 1 or more sentence describing it which I want in a normal style. Then again a word or sentence ending with ":" where I need to apply a char style. 

 

I have tried this using Nested style (screenshot attached). It works for one sentence only but there are more than 1 sentence, it is not working.

What modificaiton do I need to do in Nested style ? It is driving me crazy.

 

I posted a similar question but that was for single sentence.

(https://community.adobe.com/t5/indesign-discussions/nested-styles-issue/td-p/14697938)

TOPICS
How to

Views

385

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 2 Correct answers

Community Expert , Jun 23, 2024 Jun 23, 2024

In this case, I would use a GREP style, like this:

(\w+\s)*\w+?:

Capture d’écran 2024-06-23 à 19.16.30.pngCapture d’écran 2024-06-23 à 19.17.45.png

Votes

Translate

Translate
Community Expert , Jun 24, 2024 Jun 24, 2024

Just wanted to know about another solution whether it is possible using Nested Styles or not.

 

Hi @Bedazzled532, I think you would have to insert some kind of marker, so Grep is going to be more efficient:

 

Screen Shot 1.png

Votes

Translate

Translate
Community Expert ,
Jun 23, 2024 Jun 23, 2024

Copy link to clipboard

Copied

In this case, I would use a GREP style, like this:

(\w+\s)*\w+?:

Capture d’écran 2024-06-23 à 19.16.30.pngCapture d’écran 2024-06-23 à 19.17.45.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
Enthusiast ,
Jun 24, 2024 Jun 24, 2024

Copy link to clipboard

Copied

@jmlevy Thanks for the reply.  I am using Grep styles already for this. What if I want to do with Nested Styles?

 

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 ,
Jun 24, 2024 Jun 24, 2024

Copy link to clipboard

Copied

You need to use the“end of nested style” character as a trigger to achieve this. But why don't you want to use GREP style since it's more efficient in this case?

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
Enthusiast ,
Jun 24, 2024 Jun 24, 2024

Copy link to clipboard

Copied

@jmlevy Thanks. I am using a grep style here. Just wanted to know about another solution whether it is possible using Nested Styles or not.

 

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 ,
Jun 24, 2024 Jun 24, 2024

Copy link to clipboard

Copied

Just wanted to know about another solution whether it is possible using Nested Styles or not.

 

Hi @Bedazzled532, I think you would have to insert some kind of marker, so Grep is going to be more efficient:

 

Screen Shot 1.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
Enthusiast ,
Jun 24, 2024 Jun 24, 2024

Copy link to clipboard

Copied

LATEST

@rob day Yes. This is what @jmlevy suggested. I havent tried the solution yet but I will and your screenshot suggests it works perfectly fine.

Thanks for both of you.

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