Ensure admon graphic width is 24pt (INT-1612)

This avoids the issue we were seeing in SI the reference doc PDF where
admon graphics (tip, warning, note, etc) were 'fuzzy' because 24pt
graphics were being blown up to 36pt.
This commit is contained in:
Chris Beams
2010-11-22 05:13:33 -07:00
parent 03f510a573
commit 628ed01e80

View File

@@ -24,12 +24,20 @@
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version='1.0'>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/highlight.xsl"/>
<!-- xsl:param name="draft.watermark.image" select="'images/draft.png'"/ -->
<xsl:param name="paper.type" select="'A4'"/>
<!-- resize the admon graphics. they're width 36pt by default
even though the graphics that ship with docbook are 24x24 -->
<xsl:template match="*" mode="admon.graphic.width">
<xsl:param name="node" select="."/>
<xsl:text>24pt</xsl:text>
</xsl:template>
<xsl:param name="page.margin.top" select="'1cm'"/>
<xsl:param name="region.before.extent" select="'1cm'"/>
<xsl:param name="body.margin.top" select="'1.5cm'"/>