I'm not sure I understand completely what you are doing, but two things come to mind.
First, if you use the same stroke style for an underline and a paragraph rule, they should appear visually the same, so I don't see that as an issue.
Second, I think you should be able to achieve your variable-length lines more easily using a paragraph rule, with the width set too text length rather than column width, and perhaps a small amount of negative left and right indent to run past the ends slightly, something you cannot do with an underline.
I fixed the paragraph options to text instead of column but ID damages the text. (example a)
I need to obtain the effect in b) example.
How you do it when setting the frame width in master pages?
Because a short frame will damage text (example a) and a larger one will give unnecessary white space for short texts...
BUT using a character style+underline option (in the example yellow is used instead of white...) will be perfect BUT with a straight corner, instead of a rounded border, the asked condition.
You can set the corner on your underline in the same way you set it for the paragraph rule.
Can you show us a screen shot of what happens when you set the rule to text?
As Peter said, setting your paragraph style rule in order to adjust to text width should do the job.
If your text is "condensed" like in your example A, you just have to enlarge it in your master page.
You won't have your example C problem anymore, since you did set the rule to "Text"...
Don't use underlines because you cannot indent right/left gaps...
let us know...
The problem using paragraph-variable is those white spaces (example c) instead of the required adjusted ones (example b).
And ID does not offer a solution to set a simple witdh as happens with the character style option...
You are right, I can give to the underline effect a rounded form.
Adjusting to column or to text the right width will always depend on the length of the frame...that cannot be made automatically (contrary to to the character style where the text is dynamic)
Condensed text is a compression effect originated by ID when this type of frames have not the length of the text (the heart of this thread)
Yes, right/left indent should be a must here.
Peter and Vinny,
After restarting ID the problem was solved and now I have all headings related to the variable in the master page rightly formatted with paragraph rules options.
It is a little weird as my excamples showed some problem.
Thanks. I muss rectify as the post was partially true but now anything is happily fine.
Both of you were right mentioning that it was possible. For me it is a correct answer!
1 person found this helpful
This is an old thread that I just stumbled upon, but I came up with an answer to your original question. I too want to use a rule of a specified width as an accent beneath a certain paragraph style. The easiest solution I found is this:
- Create a character style (I called mine Nested Green Rule) that applies an underline with a specific stroke weight, color, and offset value (in my case, a solid green stroke of 5 pts offset 24 pts.
- Edit the paragraph style that controls the text you always want the stroke accent to appear beneath by adding two nested styles. The first is [None] up to 1 End Nested Style Here. The second is the name of your character style (in my case, Nested Green Rule) through a specified number of characters (in my case, I indicated 3 characters).
- To activate the rule, simply insert your text cursor before the word under which you want the rule to appear, then insert the End Nested Style Here marker.
Included below are three images. The first is a screen shot of the nested style mentioned in step 2 (above). The next two images are examples of the stroke as I'm using it in my document. For the multi-line example, I inserted the End Nested Style Here marker before the first word on the second line. For the single-line example, I inserted the End Nested Style Here marker before the first word.