Re: [xep-support] keep-with-next.within-page problem

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon Mar 22 2004 - 01:31:22 PST

  • Next message: Alexander Peshkov: "Re: [xep-support] Determine when a block wraps"

    Hello Stanislaw,

    The problem appears because of the empty fo:table-cell in the last row
    of the header table - it cancels effect of keeps due to the bag in
    XEP. As a workaround you can add keep-with-next.within-page="always"
    on this row and everything will work fine. You may also want to add
    keep-together.within-page="always" to the header block to prevent it
    from breaking occasional between pages. As a general suggestion I
    would recommend to get rid of this empty table-cell and use fo:leader
    instead.

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    SO> Hello,

    SO> I'm trying to implement some fancy section titles, in which the
    SO> keep-with-next.within-page property is used to keep the section title and
    SO> the beginning of the first paragraph on the same page in the following
    SO> fashion:

    SO> <fo:block keep-with-next.within-page="always" .... >
    SO> Section Title goes here
    SO> </fo:block>
    SO> <fo:block>
    SO> First paragraph of the section starts here...
    SO> </fo:block>

    SO> The problem is that this approach doesn't seem to work for me (XEP 3.7.4).
    SO> Attached is a complete FO file and a resulting PDF document. The
    SO> problematic section/paragraph is at the very end of the file. What can be
    SO> wrong with them?

    SO> Thanks!

    SO> Stanislaw

    SO> --
    SO> Stanislaw Osinski - stachoo@man.poznan.pl - GG: 3537460
    SO> Poznan Supercomputing and Networking Center

    -------------------
    (*) 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 22 2004 - 01:41:14 PST