My apologies--to clarify, I'm aware that paragraph shading is an option with paragraph styling; my issue is that I was hoping I could use the shading to (in effect) mask part of the paragraph rule that I've set. I'll attach some visual cues here and to my original question.
Thanks again for all your help
I guess creating a character style specifically for the line around heading should work.
Below are the steps.
1. Create a character style and enable underline in it as a sample you can set this
2. Type your heading and add some spaces to either side. Apply the above created character style to these spaces. You can then get some thing like...
However aligning the heading centrally in this case can be somewhat tricky!.
Another option can be to create two different lines and then arrange them to either side of your heading, after center aligning your heading. This way you can also group them with your text frame so that they remain stick to it and move together
1 person found this helpful
if it is ok to use swatch [Paper] for the underline:
One can do it easily with a combination of underline set to a thick [Paper] bar for text only.
In combination with paragraph shading for the whole paragraph for the visible black line right and left of the text. If justification of the paragraph is set to center you'll have no problems with different text frame widths or text column widths.
Underline will obscure paragraph shading.
But it will be a problem, if the headline contains more than one line of text.
Then all the single lines of text should be kept in their own paragraphs.
This is the method I'm currently using and so far so good--I guess another drawback would be if I were to change the background to anything other than a solid colour--still, thank you so much for the advice!
This looks great (and exactly what I'm after) could you please explain how you came to it? I'm not familiar with those blue indent notations.
2 people found this helpful
If no background color, 2 para rules [automatic way]:
… But, if background color, it's more funny!
2 grep styles and a simple regex [all replace]:
The "Z" char style used is just:
There's a third way, reserved to Jedis: by "live" script, 2 para rules whose length is calculated depending on the length of the text:
[+ 2 other ways more exotic! Just for comment! ]
2 people found this helpful
When I have time, I enjoy keystroking Obi-Wan's various solutions to figure out how he works his magic. I love his answer and would not have come up with it myself. If the French dialog boxes throw you off, here are US English dialog boxes, along with my notes.
Add a Rule Above that is the width of the Column, and use the Offset to center it over the text. Mine is pink, but it can be any color.
Then add a Rule Below that is the Width of the Text. Mine is yellow for now so that you can see it. Make it thicker than the rule above, give yourself a left and right indent, and use a negative offset to move it up so that you can no longer see the rule above. Instead of shading as per your original question, this uses the Rule Below to mask the Rule Above.
Then just change the color from yellow to white.