Next in thread → Next in month →

Re: [docbook-apps] decimal-aligning numbers in the List of Figures

From
"Cob Rtayton"
Date
2007-08-31T07:42:01+00:00
ID
05a301c7eba2$5f6a9bc0$6400a8c0@totoro
Thread
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 ----- 

  
From: 
  Jeff 
  Powanda 

  
To:  
  

  
Sent: Thursday, August 30, 2007 11:28 
  AM

  
Subject: [docbook-apps] decimal-aligning 
  numbers in the List of Figures

  

  

  
I’d 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>

  
      
  </xsl:attribute-set>

  
 

  
How can I do the same for List of 
  Figures?

  
 

  
Regards,

  
Jeff Powanda
Next in thread → Next in month →