[xep-support] Leaders with margins

David Tolpin dvd at renderx.com
Thu Feb 28 11:37:55 PST 2002


Found it; somehow fell through the cracks of my mail box.

> I'm having a problem with margins and leaders:
> 
> <!-- Leader -->
> <fo:block>
>   <fo:leader
>     leader-length="100%"
>     leader-pattern="rule"
>     rule-thickness="0.25mm"
>     margin-left="15mm"/>
> </fo:block>
> 
> This leader is in the body region. XEP appears to calculate the width of the
> rule based on the whole width of the body region, and then move it 15 mm to
> the right, instead of calculting 100% from what is left of the body region
> width when 15 mm has been subtracted. So the result is that the rule goes
> from 15 mm right of the left margin to the end of the page (the right margin
> is 15 mm too).
> 
> I want the leader to go from 15 mm right of the left margin to the right
> side of the body region. How do I achieve that?
> 

XEP does it right. 100% is calculated versus content-width of the content-rectangle
of the block. As Peter Drivas advises, use indents on block, not on the
inline element.

David
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list