• 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 issue

Enthusiast ,
Jan 14, 2024 Jan 14, 2024

Copy link to clipboard

Copied

I am working on a historical booklet for a local historical society listing local WW II vets who were brothers. I'm including a short bio and a headshot photo of each vet in uniform.

 

Every paragraph starts with the rank and name of the veteran like this: Capt. John P. Doe, Jr., son of .......... which to me presents a consistency that will allow me to bold the name only as a nested style paragraph leader but I have not been able to make it work.

 

The normal paragraph type is Minion Pro Regular 12/14.5 and I selected Myriad Pro Bold as the leader type 12/14.5.

 

I tried to tell INDD to use the leader style up to the first incidence of the word son, but I have obviously told it wrong. It applys the the leader style to Capt. J only where the leader starts with Capt. John P. Doe, Jr., son of.

 

Can someone please help me get this right?

Thanks to those who know more than me,

Joe

TOPICS
How to

Views

116

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 , Jan 14, 2024 Jan 14, 2024

If you're new to using nested styles, here's a YouTube video which gives a tutorial about how they can be used:

 

https://www.youtube.com/watch?v=lgkyEBmb7dk

Votes

Translate

Translate
Community Expert , Jan 14, 2024 Jan 14, 2024

Hi @camelbreath:

 

GREP styles are like Nested Styles, but more flexible.

 

If this is what you want at left:

2024-01-14_19-51-55.pngexpand image

 

Then remove the nested style and add a GREP Style. Apply the character style name you were using for the nested style, but set the To Text: 

 

^(.+)(?=son)

 

Which says to apply the character style (mine is called Bold) to everything from the beginning of the paragraph up to the word son.

 

~Barb

 

Votes

Translate

Translate
Community Expert ,
Jan 14, 2024 Jan 14, 2024

Copy link to clipboard

Copied

I don't think nested styles are able to change character styles based on an arbitrary string of letters (like "the first instance of the word 'son')

 

Look at the possible markers that can be selected to call out a new character style:

 

Screenshot 2024-01-14 at 6.02.49 PM.pngexpand image

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 ,
Jan 14, 2024 Jan 14, 2024

Copy link to clipboard

Copied

If you're new to using nested styles, here's a YouTube video which gives a tutorial about how they can be used:

 

https://www.youtube.com/watch?v=lgkyEBmb7dk

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 ,
Jan 14, 2024 Jan 14, 2024

Copy link to clipboard

Copied

And here is another tutorial:

 

https://www.youtube.com/watch?v=pZpI64eCW9s

 

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 ,
Jan 14, 2024 Jan 14, 2024

Copy link to clipboard

Copied

LATEST

Hi @camelbreath:

 

GREP styles are like Nested Styles, but more flexible.

 

If this is what you want at left:

2024-01-14_19-51-55.pngexpand image

 

Then remove the nested style and add a GREP Style. Apply the character style name you were using for the nested style, but set the To Text: 

 

^(.+)(?=son)

 

Which says to apply the character style (mine is called Bold) to everything from the beginning of the paragraph up to the word son.

 

~Barb

 

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