From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon Aug 25 2003 - 06:00:03 PDT
Hello Jack,
The simple solution is to add both keep-with-next.within-line="always"
and keep-with-previous.within-line="always" to fo:leader. In this case
page number citation (nr) will never be left alone on the line (note
that there are should not be any spaces adjacent to fo:leader).
However if you want nr to be outdented to the right from the chapter
text you can add positive end-indent and appropriate negative
last-line-end-indent to the whole block, i.e.:
<fo:block text-align-last="justify" end-indent="20pt" last-line-end-indent="-20pt">
some title text page<fo:leader keep-with-next.within-line="always" keep-with-previous.within-line="always"/>nr
</fo:block>
Hope this helps.
Best regards,
Alexander Peshkov mailto:peshkov@renderx.com
RenderX
JB> Hi there,
JB> i have been strugling the last few days with a toc problem:
JB> what i want is the following:
JB> it's a two columns toc and every item should be like:
JB> NR some title text pagenr
JB> NR is a chapter number: should be right aligned: is no problem
JB> 'some title text' is the chapter text: should be aligned left and
JB> can span multiple lines: no problem either
JB> pagenr is the pagenr: it should be aligned right and at the
JB> same height as the last line of chapter text: here the puzzle starts
JB> I tried the <fo:leader> in a block with the 'text-align-last="justify"'
JB> attribute but sometimes the pagenr gets pushed to the new line and i get
JB> a line like:
JB> 1 9
JB> I tried nested fo-list blocks but i can't find a way to get the pagenr
JB> at the same height as the last line of the chapter title.
JB> I am obviously missing something simple, i hope. Can anyone tell me
JB> what it is ?
JB> kind regards,
JB> Jack Broeren (Ambrac)
JB> ---
JB> Outgoing mail is certified Virus Free.
JB> Checked by AVG anti-virus system (http://www.grisoft.com).
JB> Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003
JB> -------------------
JB> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
JB> in the body of the message to majordomo@renderx.com from the address
JB> you are subscribed from.
JB> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Mon Aug 25 2003 - 06:00:23 PDT