Re: [docbook-apps] Reducing the text size for table elements (PDF output)

From
<>
Date
2012-07-03T16:11:56+00:00
ID
Thread
Re: [docbook-apps] Reducing the text size for table elements (PDF output)
Lars,

I make my adjustments via a parameter as below.

Hope this helps.

 

Dean Nelson

-------------------------------------------

 

 <!-- My Table Mods -->
    
<xsl:param name="met.table.font.size">1.0</xsl:param> <!--  
-->
    <xsl:param 
name="met.table.head.font.size">1.0</xsl:param>

 <!-- Set table body font size and alignment 
-->
    <xsl:attribute-set 
name="table.properties">
        
<xsl:attribute 
name="keep-together.within-column">auto</xsl:attribute>
        
<xsl:attribute 
name="font-size">
            
<xsl:value-of select="$body.font.master * 
$met.table.font.size"/>
            
<xsl:text>pt</xsl:text>
        
</xsl:attribute>
    
</xsl:attribute-set>

 <!-- Set table header font size -->
 <xsl:template 
name="table.row.properties">
  <xsl:if 
test="ancestor::thead">
   <xsl:attribute 
name="font-weight">bold</xsl:attribute>
   <xsl:attribute 
name="color">#FFFFFF</xsl:attribute>
   <!-- 
White -->
   <xsl:attribute 
name="background-color">#000000</xsl:attribute>
   <!-- 
Black -->
   <xsl:attribute 
name="font-size">
              
<xsl:value-of
    select="$body.font.master * 
$met.table.head.font.size" 
/>
              
<xsl:text>pt</xsl:text>
          
</xsl:attribute>
  </xsl:if>
 </xsl:template>
    

 

 

In a message dated 7/3/2012 8:54:55 A.M. Pacific Daylight Time, 
 writes:

Hello,

I would like to reduce the text size for a table (for 
  example to
body.font.master *0.9 or to a fixed value like 10px).

Is 
  there a parameter for this?

Best regards, 
  Lars

---------------------------------------------------------------------
To 
  unsubscribe, e-mail: 
For 
  additional commands, e-mail: