Skip to main content
Inspiring
November 27, 2023
Answered

add a paragraph style within a paragraph style

  • November 27, 2023
  • 28 replies
  • 2166 views

Hi there,

 

I have a small issue when making a catalogue of over 200 pages: can I put a Paragraph Style within a Paragraph Style?

 

There is a specific piece of text in my document, that appears every so often, which automatically gets a specific paragraph style (I use a plugin for this). However, when this text with 'Paragraph Style A' contains a digit, I want it to change to 'Paragraph Style B'. 

 

Is this in any way possible? 

I know you can nest a character style, or use GREP to add a character style, but 'Paragraph Style A' specifically contains a Paragraph Rule in a certain color, so Character Style won't do the trick as 'Paragraph Style B' has a different color Rule, which can't be adjusted with just a Character Style...

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Robert at ID-Tasker

I apologize, English is not my mother tongue and by 'tags' I just referred to the way they 'look' like tags. So I just meant the green underlined parts, like '3y+' is a tag. But I didn't mean it technically.


No problem. 

 

So those are separate pieces of text / information? 

 

Can you / do you want to join them together? 

 

My approach was - they are separate - @rob day treat it as a single paragraph...

 

Both approaches have positives and negatives - but I think you need to clarify and decide which way is better for you... 

 

28 replies

Willi Adelberger
Community Expert
Community Expert
November 27, 2023

A paragraph can have only one single paragraph style as it name says. 
But you can use Character Styles in a Paragraph Style. You can do it in an automatic way with GREP and Nested Styles. 

Inspiring
November 27, 2023

Hi Will,

 

Thanks for replying. And yes, I do know about the possibilities with character style, however I need a paragraph style change as it's the paragraph rule that needs to change color.

Willi Adelberger
Community Expert
Community Expert
November 27, 2023

Use Underline with the exact position as character style. It is not possible to apply 2 paragraph styles to the same paragraph and it will never be.