Skip to main content
Inspiring
Jan 13, 2026 6:27 PM UTC
Question

Paragraph rule set to specific length, regardless of width of text box?

Hi

I need a paragraph style for the photo captions on my project that has a rule below that is exactly 2p wide, regardless of the width of the text box. If the photos were all the same size, i could make a "rule below" and have the 'Right Indent' be whatever it needs to be so that the rule is only 2p. But I have photos of various sizes, so this doesn't always work without some fiddling. I was wondering if there was some way to do this?
Thanks,
Kurt

 

 874324i7337FD7C410F4694.png

7 replies

FRIdNGE
Jan 13, 2026 7:54 PM UTC

Easy as usual! Use a simple para rule below with an adhoc stroke style! No more!  😉

 

874339i61D2712353AEBBCE.png

 

(^/)  The Jedi

Translate
supineNYAuthor
Inspiring
Jan 14, 2026 5:23 AM UTC

Forgive me if I'm being thick, but i don't get how this works. Does the stroke style somehow produce a stroke of the same length? Could you provide more details about how you set this up?

Translate
FRIdNGE
Jan 14, 2026 10:32 AM UTC

Basically:

 

1/ Create a specific "Stroke Style"

 

The trick is to create a very big "Pattern Length" (e.g. 1000 mm) with the right "Length" (20 mm) and "Corners" as "None".

 

874445i39ACDBD683A12E2B.png

 

874444i968CD76D6CF084B9.png

 

874446i83BF6791A963213A.png

 

2/ Create the "Caption" Para Style "Para Rule"

 

Now you just need to create your "Para Rule Below" with the right settings.

 

874447i84EB4A1DDFF53224.png

 

874448i5E299EFB3242B727.png

 

As already written, this trick I've given years ago is totally simple to play.

 

(^/)

Translate
Willi Adelberger
Community Expert
Community Expert
Jan 13, 2026 6:47 PM UTC

Make a table below and set the cell width to your value.

Translate
supineNYAuthor
Inspiring
Jan 13, 2026 6:53 PM UTC

interesting idea...so to make that part of a style sheet...would it be some kind of script or grep thing? 

 

Translate
Willi Adelberger
Community Expert
Community Expert
Jan 13, 2026 7:36 PM UTC

Tablestyle with cell styles.

Translate