[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Centering Table Titles in Print
Oh, right you are Tom! It didn't work for me as well - to top it off, I sent you the wrong section of my xsl.
This section will do what you want - but you will need to use
<table align="center">
This section also does a bit more with alignment in other places as well.
<!-- Alignment for Equation Titles that use imagedata and MathML-->
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing"> <xsl:attribute name="text-align"> <xsl:choose> <xsl:when test="self::equation and descendant::imagedata/@align"> <xsl:value-of select="descendant::imagedata/@align" /> </xsl:when> <xsl:when test="self::equation[@align] and descendant::title"> <xsl:value-of select="@align" /> </xsl:when> ; <!-- Also align figure titles --> <xsl:when test="self::figure[@align] and descendant::title"> <xsl:value-of select="@align" /> </xsl:when> <!-- Also align table titles --> <xsl:when test="self::table[@align] and descendant::title"> <xsl:value-of select="@align" /> </xsl:when> <xsl:otherwise>start</xsl:otherwise> <!-- default value for alignment--> </xsl:choose> </xsl:attribute> & nbsp; </xsl:attribute-set> Cheers
Dean Nelson
In a message dated 11/08/10 16:16:45 Pacific Standard Time, tom.browder@gmail.com writes:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]