lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page breaking


From: Jeff Kingston
Subject: Re: Page breaking
Date: Fri, 16 Jul 1999 09:55:09 +1000

David Miller writes:
> If I leave the @InitialBreak setting at its default I get a few cases of
> either only the first line of a paragraph at the bottom
> of the page, or only the last line at the top of the next page.
>
> I have tried changing @InitialBreak to
> {unbreakablefirst unbreakablelast adjust 1.2fx hyphen }
>
> while this has fixed the text in paragraphs, I now get SubSection headings
> etc. appearing on their own at the bottom, with the first paragraph on the
> next page.
>
> Is there any way of ensuring that a heading stays with at least, say 2 lines
> of the first paragraph?

This sounds like a bug.  If you feel confident enough, try changing
the @Protect symbol (line 424 of $(LOUTLIB)/include/dsf in my version)
so that it grabs more space e.g. change the current definition from

    def @Protect right x { 3.0f @High //0io // x }

to

    def @Protect right x { 3.5f @High //0io // x }

and let me know how it goes.  I can see that the current 3.0f probably
only grabs enough space to guarantee that the heading, the gap below
it, and one line of the first paragraph fits, and that unbreakablefirst
might then disallow that one first line, giving the problem you had -
but it needs experimentation to be sure.

Alternatively, make a small test file that elicits the problem and
send it over to me.

Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]