This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]