[xep-support] problem with toc

Carlos Villegas cav at uniscope.jp
Wed Aug 17 19:37:44 PDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toc.png
Type: image/png
Size: 4620 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20050818/3ab43284/attachment.png>


More information about the Xep-support mailing list