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: Re: [docbook-apps] decimal-aligning numbers in the List of Figures

Well, you can't do it with just a param and an attribute-set as you can for an orderedlist.  An orderedlist is formatted with an fo:list-block, with the number in the list-item-label part and the title in the list-item-body part.  And it has the attribute-set that supports adding the text-align attribute.  So right-aligning the number works in that context.
A list of titles (figures, tables, etc.) is output by the template named 'toc.line', which uses an ordinary fo:block containing the number and the title.  If you want the same effect, you could customize the toc.line template to output a fo:list-block instead, separating the number and title as for an orderedlist.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
Sent: Thursday, August 30, 2007 11:28 AM
Subject: [docbook-apps] decimal-aligning numbers in the List of Figures

Id like to decimal-align the numbers for the List of Figures so that they line up nicely. I do that with orderedlists by right-aligning the orderedlist label:


      <xsl:param name="orderedlist.label.width" select="'0.23in'"/>

      <xsl:attribute-set name="orderedlist.label.properties">

            <xsl:attribute name="text-align">right</xsl:attribute>



How can I do the same for List of Figures?



Jeff Powanda


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