Next in thread →
Next in month →
RE: [docbook-apps] setting the indent for partintro
Found this message on the docbook-apps list: http://lists.oasis-open.org/archives/docbook-apps/200610/msg00071.html Editing the “set.flow.properties” template did the trick. Here’s the customized template. <!-- Used this template to set the start-indent of Part pages --> <xsl:template name="set.flow.properties"> <xsl:param name="element" select="local-name(.)"/> <xsl:param name="master-reference" select="''"/> <!-- This template is called after each <fo:flow> starts. --> <!-- Customize this template to set attributes on fo:flow --> <xsl:choose> <!-- <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">--> <!-- body.start.indent does not work well with these processors --> <!-- </xsl:when>--> <xsl:when test="starts-with($master-reference, 'body') or starts-with($master-reference, 'lot') or starts-with($master-reference, 'front') or $element = 'preface' or $element = 'part' or (starts-with($master-reference, 'back') and $element = 'appendix')"> <xsl:attribute name="start-indent"> <xsl:value-of select="$body.start.indent"/> </xsl:attribute> <xsl:attribute name="end-indent"> <xsl:value-of select="$body.end.indent"/> </xsl:attribute> </xsl:when> </xsl:choose> </xsl:template> Regards, Jeff Powanda From: Jeff Powanda [mailto:] Sent: Wednesday, May 16, 2007 12:35 PM To: Subject: [docbook-apps] setting the indent for partintro The content on my Part titlepages isn’t indented correctly. Instead, everything in the <partintro> tag has an indent of 0 (like the title). So I added the following to my customization layer to try to set the start-indent to 1.25in: <xsl:template match="partintro" mode="part.titlepage.recto.mode" priority="1"> <fo:block text-align="left" start-indent="1.25in" font-family="{$body.fontset}"> <xsl:apply-templates select="." mode="titlepage.mode"/> </fo:block> </xsl:template> But this doesn’t work. I don’t see this <fo:block> in the FO file. Not sure why. Can anyone tell me an easy way to set the indent for everything other than the title on a Part titlepage? Regards, Jeff Powanda
Next in thread →
Next in month →