This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Footnote marks in FO output
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: "'Paul A. Hoadley'" <paulh at logicsquad dot net>, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 29 Apr 2003 08:53:55 -0400
- Subject: RE: [docbook-apps] Footnote marks in FO output
I've been meaning to try this myself and just haven't found the time yet. I
was going to try adding it to the <fo:root/> element so that it applies
everywhere. I don't know of any problems that would be caused by a
line-height-shift-adjustment of 'disregard-shifts'.
If that does cause problems, a template like this would probably handle 90%
of the cases:
<xsl:template
match="para[.//footnote|.//footnoteref|.//superscript|.//subscript]">
<fo:block line-height-shift-adjustment="disregard-shifts">
<xsl:apply-imports/>
</fo:block>
</xsl:template>
> -----Original Message-----
> From: Paul A. Hoadley [mailto:paulh at logicsquad dot net]
> Sent: Tuesday, April 29, 2003 3:38 AM
> To: docbook-apps at lists dot oasis-open dot org
> Subject: [docbook-apps] Footnote marks in FO output
>
>
> Hello,
>
> I know the issue of footnote marks has been discussed numerous times,
> but I've run into this particular problem again, and also have a
> partial solution.
>
> The FO stylesheets use a <fo:inline> with the attribute
> 'baseline-shift="super"' to render the in-text footnote markers. The
> default value of the block-level attribute
> 'line-height-shift-adjustment' is 'consider-shifts', which means that
> (even with a customisation to reduce the font size of the marker as
> low as 80-85% (stylesheets use 90%)) the baseline of the line
> containing the footnote mark is shifted down a little, and for just
> that single line -- making whole paragraphs look quite uneven.
>
> If the _surrounding block_ containing the footnote inline has the
> attribute 'line-height-shift-adjustment="disregard-shifts"', the
> output looks much nicer -- I've tested it by adding it in by hand. My
> naive attempts at getting the attribute where it needs to be (by
> customising 'format.footnote.mark' -- it's obviously too late by this
> stage) have failed. I suspect it's probably safest to add it in only
> when there's a footnote mark in the block in question. Can anyone
> suggest how?
>
>
> --
> Paul.
>
> mailto:paulh at logicsquad dot net
> mailto:phoadley at maths dot adelaide dot edu dot au
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
> For additional commands, e-mail:
> docbook-apps-help at lists dot oasis-open dot org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org