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: RE: [docbook] How to decrease font in the code examples


> -----Original Message-----
> From: Markus Innerebner 
> >
> > Use CSS (assuming html output).
> The output is pdf.


[moved to the docbook-apps list, which is more appropriate in this case]


There is an attribute-set for example properties:
http://docbook.sourceforge.net/release/xsl/current/doc/fo/example.properties
.html

You can modify it in your customization layer:

<xsl:attribute-set name="example.properties"
use-attribute-sets="formal.object.properties">
  <xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 0.7"/>
    <xsl:text>pt</xsl:text>
  </xsl:attribute>
</xsl:attribute-set>

This will make the font size in examples 70% of body.font.master (which is
10pt).

/MJ




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