ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bugs in page breaks with items
@ 2014-06-16 19:13 Pablo Rodriguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2014-06-16 19:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-16 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-16 19:13 bugs in page breaks with items Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).