This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Footnote alignment


This is a bug in the DocBook stylesheet.  The footnote template should be
resetting the text-align property so it doesn't inherit it.

Until this is fixed, you will need to customize the match="footnote"
template in fo/footnote.xsl:

        <fo:footnote-body font-family="{$body.fontset}"
                          font-size="{$footnote.font.size}"
                          font-weight="normal"
                          font-style="normal"
                          text-align="left"
                          ...

The last attribute is the property you need to add.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Giulio Piancastelli" <gpian@softhome.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Saturday, May 15, 2004 6:39 PM
Subject: [docbook-apps] Footnote alignment


> Using version 1.65.1 of Norm Walsh's stylesheets to generate XSL-FO and
> FOP 0.20.5 to generate PDF, I have tried to modify epigraph's alignment
> copying the template from fo/block.xsl and altering it in the following
way:
>
> <xsl:template match="epigraph">
>    <fo:block>
>      <xsl:call-template name="anchor"/>
>      <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
>      <xsl:if test="attribution">
>        <fo:block text-align="center">
>          <xsl:text>--</xsl:text>
>          <xsl:apply-templates select="attribution"/>
>        </fo:block>
>      </xsl:if>
>    </fo:block>
> </xsl:template>
>
> And adding the following template to get the whole epigraph alignment to
> the right:
>
> <xsl:template match="epigraph/para|epigraph/simpara">
>    <fo:block xsl:use-attribute-sets="normal.para.spacing"
> text-align="right" font-style="italic">
>      <xsl:apply-templates/>
>    </fo:block>
> </xsl:template>
>
> But now I have noticed that the footnote text alignment at the bottom of
> the page is the same as the text alignment of the text block in the page
> body where the footnote reference (e.g. a number) is placed. (I have
> noticed it because I have a footnote on the attribution of an epigraph.)
> How can I avoid this behaviour?
>
> Best Regards,
> Giulio Piancastelli.
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]