Dear Hans,

sorry for bothering you with this, but today I found an ugly pagebreak
such as the following in a book I’m writting:

    \showframe\showgrid
    \setupbodyfont[pagella,15pt]
    \starttext
    \chapter{Chapter title}
    \section{Section title}
    \dorecurse{10}{\dorecurse{10}{Sentence. }\par}

    \startitemize
    \item \dorecurse{5}{This is an item. }
    \item \dorecurse{15}{This is an item. }
    \item \dorecurse{5}{This is an item. }
    \stopitemize
    \stoptext

The second item from the list has the page break in the sample above.
But if you comment the last item from the list, first two items fit in
the first page.

For some strange reason, ConTeXt is not able to leave the third item in
that list alone in the second page.

I have the strong impression that items themselves (not the paragraphs
they contain) are handled by ConTeXt with rules for widow and orphan lines.

The example above shows this. If you change recursion in the second item
from 15 to 10 (so that the item has three lines), the whole list is
moved to the second page. I think that the first item should remain on
the first page.

Another sample that shows the same behavior:

    \showframe\showgrid
    \setupbodyfont[pagella,15pt]
    \starttext
    \chapter{Chapter title}
    \section{Section title}
    \dorecurse{10}{\dorecurse{10}{Sentence. }\par}

    \startitemize
    \dorecurse{4}{\item This is an item.\par}
    \stopitemize
    \stoptext

If there are four items, all text fits in one page. If there are five
items, three items remain in the first page and two items move to the
second page (not only the last one, as it should).

But if there are six items in the list, the first four ones remain in
the first page and the other two move to the second page.

Could you fix these page breaks?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to