Page 1 of 1

Image size of callouts and admonitions in docbook

Posted: Tue May 22, 2007 9:14 am
by watho
I want to use images in my docbook document. The images are shown, but too big and blurred.

I am using the images delivered with oxygen xml 8.2. So the original size of the callout is 12x12 px, but in the document its 24x24.

I like to know, which parameters i have to change to resize the pictures, respectively not to resize them.

Image
Image

MfG ThW

Posted: Tue May 22, 2007 3:42 pm
by sorin_ristache
Hello,

You have to create a DocBook customization layer for the template which sets the content width of the image and apply it to your DocBook XML document:

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="file:///C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/xsl/fo/docbook.xsl"/>

<xsl:template match="*" mode="admon.graphic.width">
<xsl:param name="node" select="."/>
<xsl:text>18px</xsl:text>
</xsl:template>
</xsl:stylesheet>
You can change 18px with other number and size unit accepted for graphic sizes in XSL-FO.


Regards,
Sorin

Posted: Wed May 23, 2007 2:41 pm
by watho
thx for your help.