Re: TOC with leaders - alignment problems
Andreas L. Delmelle wrote: > > On 30 Jul 2011, at 18:37, mhoenicka wrote: > > There seems to be a workaround. > Following a hunch, I removed nested inlines as much as possible, and > worked with a reduced: > > last-line-end-indent="-24pt"> >keep-with-next.within-line="always"> > 1. Short chapter title > > leader-alignment="reference-area" > keep-with-next.within-line="always" /> > > > > > > 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. > > Hi Andreas, this works like a charm. I haven't seen any ill effects in my document, so this is the way to go. BTW it is fairly simple to modify the stylesheets appropriately. There's a template called "toc.line" in fo/autotoc.xsl. You just have to copy this template to your customization layer and remove or comment the offending lines. thanks for the quick fix Markus -- View this message in context: http://old.nabble.com/TOC-with-leaders---alignment-problems-tp32162949p32163309.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: TOC with leaders - alignment problems
On 30 Jul 2011, at 18:37, mhoenicka wrote: Hi Markus > > 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: 1. Short chapter title 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: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
TOC with leaders - alignment problems
Hi, I'm using DocBook V5.0 and the Docbook XSL stylesheets to transform a document to fo. The stylesheets generate a table of contents with entries like this: 1. Short chapter title 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: http://www.abload.de/img/docbook-fop-ragged-ind4un1.png Is there a workaround or a fix for this problem? regards, Markus -- View this message in context: http://old.nabble.com/TOC-with-leaders---alignment-problems-tp32162950p32162950.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
TOC with leaders - alignment problems
Hi, I'm using DocBook V5.0 and the Docbook XSL stylesheets to transform a document to fo. The stylesheets generate a table of contents with entries like this: 1. Short chapter title 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: http://www.abload.de/img/docbook-fop-ragged-ind4un1.png Is there a workaround or a fix for this problem? regards, Markus -- View this message in context: http://old.nabble.com/TOC-with-leaders---alignment-problems-tp32162949p32162949.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org