Skip to main content
Known Participant
February 12, 2024
Answered

nested styles indesign ....

  • February 12, 2024
  • 2 replies
  • 1401 views

What could be the reason that the styles are not working, I have text for example

 

Text1: afdfsgsdfsdafasdfsdafsda
Text2: fsdfsadfasdfasfsdafsdafsdafsd

Text3: fsdfsadfasdfasfsdafsdafsdafsd

 

And for the colons to be bold, I used nested styles, but they do not work at all I did everything according to the youtube tutorial. Someone suggest what could be the cause?

 

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

This topic has been closed for replies.
Correct answer rob day

look this video  i did it  like that  https://drive.google.com/file/d/1o_11zvAkUORDJ9d9iURDoxmfVDLBMIVW/view?usp=sharing 


You’ve set the entire paragraph’s Font Style to Bold

 

 

You want the Paragraph’s Font Style to be Regular, and let the nested element up to a : get the bold Character Style:

 

2 replies

James Gifford—NitroPress
Legend
February 12, 2024

In this case, the character styule is somewhat secondary and the actual GREP string is what you need to examine.

 

I thought at first that a colon might need to be 'escaped' in a GREP string, but it can simply be entered for a match.

 

The string (.+): (or (\w+): may be more selective) should match any sentence-leading word ended with a colon, and apply the designated Character Style to those characters.

 

ETA: I am not an expert with GREP, so I can't define a string that will skip words followed by a colon in the text. The closest I can come to forcing it to apply only to the sentence-leading words up to the colon is ((\u\w+): ) ...

 

ETA2: (^(\w+): ) should apply the style only to the leading word or words in each paragraph.

Known Participant
February 12, 2024

i did it , not working 

James Gifford—NitroPress
Legend
February 12, 2024

Okay, try the other strings I suggested (in additions).

 

And try this simple test: apply your character style 'bold2' directly to those terms and colons. Do they bold properly? (That is, is the character style defined correctly, and does this font set have/allow a bold?)

 

Also note that you have to exit the style manager, save the style, before a GREP style will take effect, even with Preview checked. It's a dynamic process and won't run while you're editing the style.

Willi Adelberger
Community Expert
Community Expert
February 12, 2024
  • Did you appy a character style to the paragraph?
  • Did you apply a GREP style?
Known Participant
February 12, 2024

my text


Known Participant
February 12, 2024

Hi @Jeden34429737waju , You should not need a GREP style in addition to the Nested Style you are showing in your first capture. Can you show a capture of the Basic Character panel for bolddd Character Style you are using in your Nested Style? Something like this:

 


yes