[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] TOC label and text spacing
Hi,
I'm not sure I understand the question. When you say your current
customization is not right because it "makes the spacing of the text
relative to the label", I don't have a clear picture of what that means. If
you consistently use the same provisional-distance-between-starts, then the
placement should be the same for all entries of the same level, like a table
column.
Also, you already have a customization that uses fo:list-block. Why can't
you adapt that customization to use fo:table instead? Is your goal to put
all the entries into a single table instead of individual tables per entry?
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
----- Original Message -----
From: "Lillian Sullam" <lsullam@bruxton.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, November 10, 2008 1:30 PM
Subject: [docbook-apps] 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]