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: [xsl-stylesheets] reducing font size in formalparas?


Hello,

I am using DocBook XML/XSL to write my biology thesis, and I use
formalparas in captions for the figure legends. To make them clearly
distiguishable from the text, I have set their font to sans-serif,
however it looks bigger than the original one.

I failed to modify my customisation layer to reduce the size. Could
any of you give me a hint?


<xsl:param name="toto">
  <xsl:value-of select="$body.font.master * 0.8"/>
  <xsl:text>pt</xsl:text>
</xsl:param>

<!-- toto is the french foo -->

<xsl:template match="formalpara/para">
  <fo:block font-family="sans-serif" font-size="$toto">
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<!-- changes the font family but not its size :(( -->


Thank you very much,

-- 
CHARLES PLESSY, mailto:charles.plessy@ulp.u-strasbg.fr      \
IGBMC, B.P.10142, 67404 Illkirch Cedex, France             }(°>
Tel : (33) [0]388 65 33 38; Fax (33) [0]388 65 32 01        /
http://zfin.org/cgi-bin/webdriver?MIval=aa-persview.apg&OID=ZDB-PERS-010827-9



PS : I'm also customizing the general font size to have smaller
titles: is it the reason of the failure?

<xsl:param name="body.font.family" select="'Times Roman'"/>
<xsl:param name="body.font.master" select="10"/>
<xsl:param name="body.font.size" select="12"/>
<xsl:param name="title.margin.left" select="'0pc'"/>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]