[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Formatting numbers in List of Figures
Hello! I use a figure list in my document, but
there’s one small thing that annoys me. The alignment of the separator is
wrong. That’s how it looks right now: 8. Data access ........................................................................................................
24 9. Overview of the
front-end componenents and their dependencies ......................................
25 10.
The model-view-controller pattern of the default statistics module ...................................
27 That’s
how it should look: 8. Data
access ........................................................................................................
24 9. Overview
of the front-end componenents and their dependencies ......................................
25 10.
The model-view-controller pattern of the default statistics module ...................................
27 I customized the toc.line template like
this(only the part where the number gets formatted) <fo:basic-link
internal-destination="{$id}"> <xsl:if test="$label != ''"> <xsl:if test="$label
< '10'"> <fo:inline
color="#FFFFFF"><xsl:text>_</xsl:text></fo:inline> <xsl:copy-of
select="$label"/> <xsl:value-of
select="$autotoc.label.separator"/> </xsl:if>
<xsl:if
test="$label > '9'"> <xsl:copy-of
select="$label"/> <xsl:value-of
select="$autotoc.label.separator"/> </xsl:if>
</xsl:if> <xsl:apply-templates select="."
mode="title.markup"/> </fo:basic-link> This works, but I’m sure there must
be a better solution J. Thanks in advance, Mathias |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]