Loading ...
Sorry, an error occurred while loading the content.

Table of Contents leader question

Expand Messages
  • arianhojat2000
    I am building a table of contents and the table of contents itself is a bit fudgy. ... The Firm and Its Objectives .................................. 4
    Message 1 of 3 , Jun 1, 2005
    • 0 Attachment
      I am building a table of contents and the table of contents itself is
      a bit fudgy.
      it looks like this:


      |.................pageslength.................|

      The Firm and Its
      Objectives .................................. 4

      #######<!-- when i want it to look like -->######

      The Firm and Its Objectives ................. 4


      thanx if anyone can help,
      Arian



      my template looks like this:

      <xsl:template match="subsection" mode="toc">
      <fo:block margin-left="8px" color="black" space-before="12pt">

      <fo:inline font-style="italic"><xsl:value-of
      select="./name"/></fo:inline>

      <fo:leader leader-pattern="dots" leader-alignment="reference-
      area" leader-length="100%"/>


      <fo:page-number-citation>
      <xsl:attribute name="ref-id">
      <xsl:value-of select="./id" />
      </xsl:attribute>
      </fo:page-number-citation>


      </fo:block>

      </xsl:template>
    • Eliot Kimber
      ... The trick for this type of structure is to use leader-length= auto and text-align-last= justify on the containing block. This causes the leader to take
      Message 2 of 3 , Jun 1, 2005
      • 0 Attachment
        arianhojat2000 wrote:
        > I am building a table of contents and the table of contents itself is
        > a bit fudgy.
        > it looks like this:

        The trick for this type of structure is to use leader-length="auto" and
        text-align-last="justify" on the containing block. This causes the
        leader to take all the available space on the line between the text
        before it and the text after it, which is justified to the end edge of
        the block.

        Saying leader-length="100%" means "make the leader as long as the width
        of my containing region, which is not what you want.

        Cheers,

        Eliot
        --
        W. Eliot Kimber
        Professional Services
        Innodata Isogen
        9390 Research Blvd, #410
        Austin, TX 78759
        (512) 372-8155

        ekimber@...
        www.innodata-isogen.com
      • arianhojat2000
        Awesome it works! Thanks Eliot! ... itself is ... and ... of ... width
        Message 3 of 3 , Jun 1, 2005
        • 0 Attachment
          Awesome it works!
          Thanks Eliot!


          --- In XSL-FO@yahoogroups.com, Eliot Kimber <ekimber@i...> wrote:
          > arianhojat2000 wrote:
          > > I am building a table of contents and the table of contents
          itself is
          > > a bit fudgy.
          > > it looks like this:
          >
          > The trick for this type of structure is to use leader-length="auto"
          and
          > text-align-last="justify" on the containing block. This causes the
          > leader to take all the available space on the line between the text
          > before it and the text after it, which is justified to the end edge
          of
          > the block.
          >
          > Saying leader-length="100%" means "make the leader as long as the
          width
          > of my containing region, which is not what you want.
          >
          > Cheers,
          >
          > Eliot
          > --
          > W. Eliot Kimber
          > Professional Services
          > Innodata Isogen
          > 9390 Research Blvd, #410
          > Austin, TX 78759
          > (512) 372-8155
          >
          > ekimber@i...
          > www.innodata-isogen.com
        Your message has been successfully submitted and would be delivered to recipients shortly.