Next in thread →
Next in month →
RE: [docbook-apps] indenting refsection titles
Hi, thank you. Now it works as expected. The pitfall was the „ancestor-or-self::refsection“. Before I only tried to test for „self::refsection“ which did not give me the desired indentation. Pavel -----Original Message----- From: Bob Stayton [mailto:] Sent: Monday, January 26, 2009 7:01 PM To: Skopik Pavel; 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. Bob Stayton Sagehill Enterprises ----- Original Message ----- From: Skopik Pavel To: Sent: Friday, January 23, 2009 2:18 AM Subject: [docbook-apps] indenting refsection titles Hello, 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
Next in thread →
Next in month →