← Prev in month ← Prev in thread
Next in thread → Next in month →

RE: [docbook] How to decrease font in the code examples

From
Mauritz Jeanson <>
Date
2007-05-16T13:36:39+00:00
ID
000001c797bf$33e5bbb0$71ea1a51@D7MZ171J
Thread
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
← Prev in month ← Prev in thread
Next in thread → Next in month →