Re: Keeping Text Together

Subject: Re: Keeping Text Together
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Thu, 26 Feb 1998 16:01:03 +0000
In message <34F57961.FD6A2960@xxxxxxxxxxxxxxxx>, Chuck Darney
<cdarney@xxxxxxxxxxxxxxxx> writes
>While it does a pretty good job of keeping text together, I want to be
>sure that each subordinate "SECTION" is all on one page if possible. 
>For example, if all of section levels 1, 2 and 3 can remain on a single
>page, good.  If not, level 3 would move to the next page to provide room
>for 1 & 2.  At the very least, I need to make sure that the SECTION
>TITLE stays with the following paragraphs.  The above code has left the
>TITLE on one page and subsequent paragraph on the next.
>Any suggestions on how I can control the breaking better?

My experience with keep (and keep-with-next, which you could use for
your titles to 'attach' them to the following para) is that it is pretty
effective but brutal, at least as implemented in the RTF back-end (as a
'keep-with-next' property on each paragraph).  As far as I know there is
no way to do the graceful strategy you outline.

I would use 'keep' only on the lowest-level sections, and use keep-with-
next to link all section titles to the first paragraph of the relevant
section.  If you try to do more than this, it will undo what you have
achieved for the low-level sections.

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy

 DSSSList info and archive:

Current Thread
  • Keeping Text Together
    • Chuck Darney - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id JAA25967Thu, 26 Feb 1998 09:19:50 -0500 (EST)
      • Richard Light - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id NAA00383Thu, 26 Feb 1998 13:13:47 -0500 (EST) <=
      • Dave Love - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id NAA01411Thu, 26 Feb 1998 13:55:41 -0500 (EST)