OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: TOC label and text spacing


Hello,

Is there a way to have the label number in the table of contents in a
separate column then the text that follows? The way the label and text
work now it is using list-item-label and list-item-body organization
which makes the spacing of the text relative to the label. I want the
label and text to be separate, like in a table.

Here is a sample of my customized code:
<xsl:variable name="toc.block">
    <fo:list-block start-indent="{$toc.indent.width}"
		provisional-distance-between-starts="9mm"
		provisional-label-separation="7mm"
		text-align="left">
	  <fo:list-item>
	    <fo:list-item-label end-indent="label-end()" text-align="left">
		  <fo:block>
		    <xsl:apply-templates select="." mode="label.markup"/>
		  </fo:block>
		</fo:list-item-label>
		<xsl:choose>
		  <xsl:when test="self::chapter">
		    <fo:list-item-body start-indent="4mm" text-align="start">
			  <fo:block>
				<xsl:apply-templates select="." mode="titleabbrev.markup"/>
				<fo:inline keep-together.within-line="always">
				  <xsl:text> </xsl:text>

				  <fo:leader leader-pattern="dots"
							 leader-pattern-width="5pt"
							 leader-alignment="reference-area"
							 keep-with-next.within-line="always"/>
				  <xsl:text> </xsl:text>
				  <fo:basic-link internal-destination="{$id}">
					<fo:page-number-citation ref-id="{$id}"/>
				  </fo:basic-link>
				</fo:inline>
			  </fo:block>
		</fo:list-item-body>
		</xsl:when>
		<xsl:otherwise>
		<fo:list-item-body start-indent="13mm" text-align="start">
		  <fo:block>
		    <xsl:apply-templates select="." mode="titleabbrev.markup"/>
			<fo:inline keep-together.within-line="always">
		      <xsl:text> </xsl:text>

		      <fo:leader leader-pattern="dots"
		                 leader-pattern-width="5pt"
		                 leader-alignment="reference-area"
		                 keep-with-next.within-line="always"/>
		      <xsl:text> </xsl:text>
		      <fo:basic-link internal-destination="{$id}">
		        <fo:page-number-citation ref-id="{$id}"/>
		      </fo:basic-link>
		    </fo:inline>
		  </fo:block>
		</fo:list-item-body>
		</xsl:otherwise>
	</xsl:choose>
	  </fo:list-item>
	</fo:list-block>
  </xsl:variable>

Lillian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]