[xep-support] How to specify location specific margins for sidebars
Andreas Siegert
afxml at atsec.com
Sun Nov 21 05:47:40 PST 2010
Hi,
I am using xep as a Docbook processor with docbook 4. The only reason why
I am using XEP instead of FOP is the sidebars, which work nicely in most
aspects but two:
I can not figure out how to make the padding/margins between the sidebar
(that holds an image) adjust to the location of the sidebar.
The sidebar is specified as being inside on a doublesided layout.
I have not found a way to specify the left and right margins so that they
adjust to 0 for the side of the sidebar that is inside while keeping a
0.5em margin on the side where the text flows around it.
I am using the following syle sheet entry:
<xsl:param name="sidebar.float.width">5cm</xsl:param>
<xsl:param name="sidebar.float.type">inside</xsl:param>
<xsl:attribute-set name="sidebar.properties">
<xsl:attribute name="border-style">none</xsl:attribute>
<xsl:attribute name="border-width">0</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
<xsl:attribute name="padding-top">0em</xsl:attribute>
<xsl:attribute name="padding-bottom">-1.3em</xsl:attribute>
<xsl:attribute name="padding-left">0mm</xsl:attribute>
<xsl:attribute name="padding-right">0mm</xsl:attribute>
<xsl:attribute name="margin-top">0pt</xsl:attribute>
<xsl:attribute name="margin-bottom">1pt</xsl:attribute>
<xsl:attribute
name="margin-{$direction.align.start}">0.5em</xsl:attribute>
<xsl:attribute
name="margin-{$direction.align.end}">0.5em</xsl:attribute>
</xsl:attribute-set>
I am also running into some wierd issues with padding, that's why I have
set a negative one on top.
Occasionally I get about 1.5 lines margin on the bottom instead of just
half a line...
How can I get a handle on this?
thx
afx
--
atsec information security GmbH, Steinstrasse 70, D-81667 München, Germany
Phone: +49-89-44249830 / Fax: +49-89-44249831 / Web: atsec.com
HRB: 129439 (Amtsgericht München) / Geschäftsführer:
Salvatore la Pietra, Staffan Persson
!DSPAM:87,4ce9230163732914853475!
More information about the Xep-support
mailing list