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] 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, lars.vogel@gmail.com 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: 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]