[xep-support] Re: Fixed width field and leaders

From: Kevin Brown <kevin@renderx.com>
Date: Wed Dec 29 2010 - 15:21:47 PST

Mark:

The right side might look something like this:

<fo:block text-align="left" text-align-last="justify">Some Section
        <fo:inline keep-together.within-line="always"><fo:leader
leader-pattern="dots"/>3</fo:inline>
</fo:block>

Put it in a two column table. Or even a three column table with the page
numbers in the third.

I have attached sample FO and PDF output for one such layout with only
blocks.

Kevin Brown
RenderX

-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Mark Burton
Sent: Wednesday, December 29, 2010 1:55 PM
To: xep-support@renderx.com
Subject: [xep-support] Fixed width field and leaders

Hi,

I'm just starting with XSL-FO and I am trying to customise the docbook
stylesheets.

Is it possible to construct a TOC line that looks like this?

1      Some section ......................... 3
1.1    A sub-section ........................ 4
2      Another section ...................... 5

So it's some text in a fixed width field, another text field that's
variable length, the dots and then the page number at the end of the
line.

I tried putting the label text inside <fo:inline width="2cm"> but it
didn't have any effect, the leaders appear to gobble all of the space
in the line. Having spent quite a few hours trying to come up with a
solution, I would be grateful if anyone could suggest what is
required.

Cheers,

Mark

!DSPAM:87,4d1bae4163735959885819!

_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w
ww.renderx.com/terms-of-service.html

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

Received on Wed Dec 29 15:21:57 2010

This archive was generated by hypermail 2.1.8 : Wed Dec 29 2010 - 15:21:58 PST