[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] indenting refsection titles
Hi,
This one is harder than it should be.
The templates for refsection call some of the templates for section
elements. I think that's done because the titles need to fit into the
hierarchy of title typography, and refentry can appear an a variety of locations
and section levels, so that the title size needs to be adjusted based on its
context. As written, the templates call the "section.heading"
template last, making those properties the innermost of the fo:blocks and hence
overriding other attributes set for refsection.
The simplest solution is to adjust the
attribute-set "section.title.properties" in your customization layer.
Something like this:
<xsl:attribute-set
name="section.title.properties">
<xsl:attribute name="start-indent"> <xsl:choose> <xsl:when test="ancestor-or-self::refsection"><xsl:value-of select="$body.start.indent"/></xsl:when> <xsl:otherwise>0pt</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:attribute-set> This assumes you don't want normal section titles
indented. If you do, then adjust this as needed.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]