[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] changing font-size of caption
Hello,
On Mon, Feb 28, 2005 at 10:42:33AM +0100, Steffen Gl?ckselig wrote:
> after managing to align the caption of a figure to left, I know want
> to reduce the font size, maybe change the font itself. How would I
> do that?
You could add attributes to the fo:block you've used in your custom
template:
> For left-aligning I've already included
> <xsl:template match="caption">
> <fo:block>
<fo:block font-family="Helvetica" font-size="8">
> <xsl:attribute name="text-align">
> <xsl:choose>
> <xsl:when test="@align != ''">
> <xsl:value-of select="@align"/>
> </xsl:when>
> <xsl:otherwise>left</xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]