Re: [xep-support] Footnote causing gap between lines

From: Nikolai Grigoriev (grig@renderx.com)
Date: Mon Mar 03 2003 - 00:24:20 PST

  • Next message: Devang Parekh: "[xep-support] Line-through alignment with embedded TTF"

    Gustaf,

    > Here's something that I've never been able to solve completely.
    > The footnote number is causing an ugly gap in the text.

    I know two ways to cope with the problem.

    1) You can disable line spacing adjustment for all subscripts
    and superscripts _in the block that contains the footnote_,
    by setting line-height-shift-adjustment="disregard-shifts".
    The property is inheritable, so if you like this behaviour
    to be the default one, just add the attribute to fo:root.

    2) Alternatively, you can force text-altitude on footnote
    numbers to be zero:

    <fo:footnote>
        <fo:inline baseline-shift="super" font-size="5pt"
                   text-altitude="0">
            <xsl:value-of select="$footnote-number"/>
         </fo:inline>
         <fo:footnote-body>
             ...

    This will work only for superscripts, and only if the shifted
    baseline is lower than the ascender of the main text - that is,
    in 99,9% of real-life cases :-). The method is less universal
    than the previous one, but may be easier to use in complex
    stylesheets because changes are perfectly local.

    Regards,
    Nikolai
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Mon Mar 03 2003 - 00:28:23 PST