The more general case with dot leaders and right alignment is an inresolved FOP bug:

https://issues.apache.org/jira/browse/FOP-1839

The section on customizing table of contents entries is here:

http://www.sagehill.net/docbookxsl/PrintToc.html#PrintTocEntries

The template named 'toc.line' generates an <fo:leader> element that produces the dot leaders.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 11/26/2018 12:19 AM, Bernhard Kleine wrote:

Hi Bob,

Unfortunately the case you cite is not applicable in my example. I looked for the spacing e.g. for this line:

<sect1 xml:id="hesperiidaeHaeufigkeit" xreflabel="Die Häufigkeit der Hesperiidae">             <title>Häufige und weniger häufige Dickkopffalter in Lenzkirch</title>

There is not any extra space in the coding nor is there an unusual whitespace. IMHO I see these irregularities only when the leader is very short. Maybe one get rid of the leader dots. But I have not found it in your book.

Regards

Bernhard

Am 26.11.2018 um 05:35 schrieb Bob Stayton:

I don't think there is anything wrong the the fo coding by the stylesheet.  Here is a similar report for the DITA Open Toolkit on the fop-users mailing list:

http://apache-fop.1065347.n5.nabble.com/White-space-in-FO-causes-PDF-TOC-problem-td46410.html

It isn't clear that your problem is caused by whitespace around the title.  Your misaligned entries all seem to have short dot leaders.  But it seems the fop algorithm has a problem with right alignments with dot leaders.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net
On 11/25/2018 10:03 AM, Bernhard Kleine wrote:

As can be seen from the screenshot, the composed page-numbers are not right aligned. Where do I have to look (adjust) that this will take place?

Regards

Bernhard

--
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com,www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
--
spitzhalde9
D-79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com,www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

Reply via email to