On 30 Jul 2011, at 18:37, mhoenicka wrote:

Hi Markus

> <snip />
> When processing these fo with fop nightly builds (first tested: March 04
> 2011, last tested: July 27 2011), the chapter titles are correctly aligned
> on the left side. However, the page numbers do not align on the right side,
> resulting in a ragged edge. The longer the chapter title, the further the
> page number moves to the left. Here's a screenshot of the pdf output:

This looks like a bug, somehow, although I am not 100% sure, yet.

> Is there a workaround or a fix for this problem?

There seems to be a workaround.
Following a hunch, I removed nested inlines as much as possible, and worked 
with a reduced:

<fo:block text-align-last="justify" text-align="start" end-indent="24pt" 
last-line-end-indent="-24pt">
  <fo:basic-link internal-destination="..." keep-with-next.within-line="always">
    1. Short chapter title
  </fo:basic-link>
  <fo:leader leader-pattern="dots" leader-pattern-width="3pt" 
             leader-alignment="reference-area" 
keep-with-next.within-line="always" />
  <fo:basic-link internal-destination="...">
    <fo:page-number-citation ref-id="..."/>
  </fo:basic-link>
</fo:block>

I am no Docbook guru, so I can't tell you exactly how to make the stylesheets 
produce such a structure without the nested inlines, but maybe it's enough to 
steer you towards a solution.


HTH!

Regards

Andreas
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to