This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] [xsl stylesheets] reducing font size in formalparas?
> Really? It worked on the formalpara I tried it on,
> with fop 0.20.5.
I'm using fop 0.20.5 also.
> How are you using the formalpara in your document?
here is an example :
<figure id="enhancer-survey-strategy2">
<title>
Strategy to detect enhancer conservation
</title>
<mediaobject>
<imageobject>
<imagedata fileref="figures/enhancer-survey-strategy2.jpg" format="JPG"/>
</imageobject>
<textobject>
<phrase>figures/enhancer-survey-strategy2</phrase>
</textobject>
<caption>
<formalpara>
<title>
Strategy to detect enhancer conservation
</title>
<para>
(...)
</para>
</formalpara>
</caption>
</mediaobject>
</figure>
BTW, Is there a way to say to fo that the figure and the caption must
be on the same page?
> BTW, don't set the 'body.font.size' parameter. Only set
> the 'body.font.master' parameter (without units), because
> the body.font.size parameter is computed from it.
I knew it wasn't good, but as it took ages for amazon to send me your
book, I only had finished the "parameters" section when my supervisor
complained loudly that the titles were too big! So I reduced the
general size, and increased the font size in paragraphs.
Have a nice day,
Charles
--
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 : here is my full customisation layer, just in case:
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:import href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl"/>
<xsl:include href="common-customizations.xsl" />
<xsl:param name="paper.type" select="'A4'"/>
<xsl:param name="fop.extensions"/>
<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'"/>
<xsl:param name="xref.with.number.and.title" select="0"/>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="insert.xref.page.number">no</xsl:param>
<xsl:param name="toto">
<xsl:value-of select="$body.font.master * 0.8"/>
<xsl:text>pt</xsl:text>
</xsl:param>
<xsl:template match="formalpara/para">
<fo:block font-family="sans-serif" font-size="${toto}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="title">
<l:template name="figure" text="Figure %n"/>
</l:context>
</l:l10n>
</l:i18n>
</xsl:stylesheet>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.