[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Indented leader under chapter titles
Howdy, I'm
using: *
Saxon 6.5.5 *
Xerces 2.8.0 *
Apache FOP 0.95 In my PDF output, I’ve got chapter titles and headings
that start at the left margin, and then the body text is indented relative to
that. I’d like to put a horizontal line underneath the
chapter title. So, I added a leader to the template that writes the chapter
title, like so: <xsl:template match="title"
mode="chapter.titlepage.recto.auto.mode"> <fo:block
xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="chapter.titlepage.recto.style"
font-size="28.8832pt" font-weight="bold"> <xsl:call-template
name="component.title"> <xsl:with-param
name="node" select="ancestor-or-self::chapter[1]"/> </xsl:call-template> <fo:leader
leader-pattern="rule" leader-length="100%"/> </fo:block>
</xsl:template> The leader shows up, but it’s indented the same amount
the body text is indented, and I want it to NOT be indented (so it matches the
chapter title). The leader is being treated like the flow on the page, which is
indented by the amount of $body.start.indent. Is there a way to get the leader
to be considered part of the chapter title instead, and thus NOT indented? Do I
have to futz with the set.flow.properties template to get it to not indent any
fo:leader block it finds? Or is there a simpler way? Thanks for your help on this! cheri -- |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]