OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] indenting refsection titles

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:when test="ancestor-or-self::refsection"><xsl:value-of
This assumes you don't want normal section titles indented.  If you do, then adjust this as needed.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
Sent: Friday, January 23, 2009 2:18 AM
Subject: [docbook-apps] indenting refsection titles


I have been trying to indent refsection title for PDF output, but so far without any succes.

The body text is indented to 15mm and we use single sided output. I was able to indent refsynopsisdiv title using section.title.properties, but I cannot find out which template to change to get desired effect for refsection. I noticed that the refsection.titlepage template is called for processing title, so i tried to directly add left margin to its fo:block. But still no change. Then I tried to create custom refsection.title in the same way as the component titles templates can be customized. Again, no success.

I would be grateful for some hints on where to begin.

Thank you.

Pavel Škopík

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]