You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Ingo Bruell <ib...@gmx.de> on 2001/04/30 19:49:26 UTC

Re[2]: DOCBOOK-APPS: problems with toc in fo

Hi,

>>   the  items  in  the toc are filled with spaces between the words, so
>>the line is completly filled like justification. The align attribut in
>>the fo file is set to justify. Is there a way to configure docbook-xml
>>to align the lines in the toc left ?

MB> It's the same problem I have. I use DocBook 1.37 XSL, Xalan 2.0.1 for FO 
MB> output and FOP 0.18.1 (latest version) for PDF output.

I have changed autotoc.xsl so it looks like:

<xsl:template name="toc.line">
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <fo:block text-align-last="justify"
            end-indent="2pc"
            last-line-end-indent="-2pc">
    <fo:inline keep-with-next.within-line="always">
      <xsl:apply-templates select="." mode="label.markup"/>
      <xsl:text> </xsl:text>
      <xsl:apply-templates select="." mode="title.markup"/>
    </fo:inline>
    <!--<fo:inline keep-together.within-line="always">
      <xsl:text> </xsl:text>-->
      <fo:leader leader-pattern="dots"
                 keep-with-next.within-line="always"/>
      <xsl:text> </xsl:text>
      <fo:basic-link internal-destination="{$id}">
<!--                     xsl:use-attribute-sets="xref.properties">-->
        <fo:page-number-citation ref-id="{$id}"/>
      </fo:basic-link>
    <!--</fo:inline>-->
  </fo:block>
</xsl:template>

so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org