[xep-support] problem with toc

From: Carlos Villegas <cav@uniscope.jp>
Date: Wed Aug 17 2005 - 19:37:44 PDT

Hi,

I'm trying to format a TOC and I'm getting some odd behaviour in XEP.
I have the following piece of code from a section/title template:

     <fo:block text-align-last="justify" space-before="5pt"
              end-indent="1.3cm" last-line-end-indent="-1.3cm">
       <fo:basic-link internal-destination="{$gid}">
        <xsl:value-of select="."/>
        <fo:leader leader-pattern="dots"/>
        <fo:inline keep-together.within-line="always">
          <xsl:value-of select="$prefix"/>
          <fo:page-number-citation ref-id="{$gid}"/>
        </fo:inline>
       </fo:basic-link>
     </fo:block>

The resulting output is in the attachment. As you see in the second line
of the image, XEP is breaking between the page prefix and the page
number (the prefix is of the form "2."). I added the fo:inline with the
keep-together.within-line condition, but it doesn't do anything as you
see. Clearly there's enough space to put the whole thing in one line.
For titles a little bit longer or shorter than the one in the example,
it works as expected. If I play with the end-indent and
last-line-end-indent values I can get this particular document to work
but I'm afraid it's going to break another document, depending on the
length of the title. The end-indent and negative last-line-end-indent
are there to get a nice output for long titles that don't fit in one
line. It works nicely except for this case that it seems to be some
threshold case.

I tested it with XEP 3.84 and 4.4-trial and they both produce the same
output.

Any suggestions?

Carlos

-------------------
(*) 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/terms-of-service.html

toc.png
Received on Wed Aug 17 20:12:26 2005

This archive was generated by hypermail 2.1.8 : Wed Aug 17 2005 - 20:12:29 PDT