Skip to main content
many islands
Participating Frequently
May 26, 2022
Answered

Paragraph Style Exception — Rules

  • May 26, 2022
  • 6 replies
  • 2071 views

Hi, I'm creating a style with paragraph rules below every line.

 

I would like to have the last line of the paragraph with no rule (an exception to the style) but I can't find how to do it, besides going one by one and unchecking the rule on that last paragraph by hand.

 

Any idea how to make an exception to the style? I'm creating a template for a client and the more automated it is, the better.

Thanks!

 


This topic has been closed for replies.
Correct answer jmlevy

You need 2 different styles; one with a rule, another one without.

Or you don't use paragraph rules, but create each rule in a separate paragraph with an underlined tab (I would use the first solution: 2 different styles).

6 replies

Participant
November 15, 2024

It's too bad that we cannot have the option to easily omit a rule being applied to a paragraph that doesn't have a hard return entered.

James Gifford—NitroPress
Legend
November 15, 2024

Well, "a paragraph" is a string of text ending in a pilcrow/paragraph mark/paragraph end.

 

A string of text ending in a soft return is just part of a larger paragraph.

 

ID is overwhelminging paragraph- and style-based. You need to work from and within that model or every task will be uphill and difficult.

Dave Creamer of IDEAS
Community Expert
Community Expert
May 28, 2022

Assuming your page has no background like your image shows, could you try putting a paper-color box on the master page that covers up the bottom rule? You would need to make a top-level layer to hold the master page items. and put any footer items on top of the box. 

David Creamer: Community Expert (ACI and ACE 1995-2023)
James Gifford—NitroPress
Legend
May 28, 2022

As good a technical answer as any (and, as almost always, ID has several solutions in the box for every layout issue)... but the need to make this layout accessible to downstream users would steer me away from using layers. I can see the "magical disappearing text" confusing the heck out of a less-experienced user, and if they unlock layers to "fix things"... ayy.

 

Dave Creamer of IDEAS
Community Expert
Community Expert
May 29, 2022

Respectively disagree. 

David Creamer: Community Expert (ACI and ACE 1995-2023)
James Gifford—NitroPress
Legend
May 26, 2022

As noted, you have to have two different styles, one way or the other.

 

InDesign does not have CSS-like rules such as '::last-child' to apply structural changes automatically. But with clear naming of the styles, a novice user should be able to sort out the usage.

 

Willi Adelberger
Community Expert
Community Expert
May 26, 2022

Use for the headline no rule, for all others rule above, no rule below. Keep options with keep before.

Community Expert
May 26, 2022

You can't have exceptions.

Consider two paragraph styles

One without a rule above as the first style - with apply next style as being the style with the rule

Then a 2nd style based on the style 

Then set the paragraph rule above for the 2nd style

 

You can then apply that style then the next style to apply the styling correctly.

 

https://layersmagazine.com/what-is-next-style-in-indesign-cc.html#:~:text=Next%20Style%20is%20one%20of,apply%20it%20to%20your%20text.

 

 

jane-e
Community Expert
Community Expert
May 26, 2022

Nice article from @Jeff Witchel, ACI  , Eugene!

 

Jane

 

Jeff Witchel, ACI
Community Expert
Community Expert
May 27, 2022

Hard to believe that was 8 years ago. I really miss Layers magazine.

jmlevy
Community Expert
jmlevyCommunity ExpertCorrect answer
Community Expert
May 26, 2022

You need 2 different styles; one with a rule, another one without.

Or you don't use paragraph rules, but create each rule in a separate paragraph with an underlined tab (I would use the first solution: 2 different styles).

Community Expert
May 26, 2022

Hey I missed your reply - that's good advice.