ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Orphan issue with \startitemize
@ 2020-11-26 21:11 Bruce Horrocks
  2020-11-26 21:41 ` Marco Patzer
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Horrocks @ 2020-11-26 21:11 UTC (permalink / raw)
  To: ntg-context

With the following MWE:

\def\Lorem{Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat. }

\showframe
\starttext

%\dorecurse{32}{ ~ \par }
%\dorecurse{33}{ ~ \par }
\dorecurse{34}{ ~ \par }

The following items are blah blah blsh:
\startitemize
\sym{-} \Lorem
\sym{-} \Lorem
\sym{-} \Lorem
\sym{-} \Lorem
\stopitemize
\stoptext

I find that \dorecurse{32} fits two items on the bottom of the first page and two at the top of the next. This is fine.

With \dorecurse{33} I get one and three - which is also fine.

With \dorecurse{34} all of the items move to the second page even though only one extra line has been added and there is now quite a large gap at the bottom of the first page.

Is there a setting that controls this a bit more precisely, please? (So that \dorecurse{34} and possibly even 35 would still split one and three.)

--
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Orphan issue with \startitemize
  2020-11-26 21:11 Orphan issue with \startitemize Bruce Horrocks
@ 2020-11-26 21:41 ` Marco Patzer
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Patzer @ 2020-11-26 21:41 UTC (permalink / raw)
  To: Bruce Horrocks; +Cc: mailing list for ConTeXt users

On Thu, 26 Nov 2020 21:11:25 +0000
Bruce Horrocks <ntg@scorecrow.com> wrote:

> With \dorecurse{34} all of the items move to the second page even
> though only one extra line has been added and there is now quite a
> large gap at the bottom of the first page.
> 
> Is there a setting that controls this a bit more precisely, please?
> (So that \dorecurse{34} and possibly even 35 would still split one
> and three.)

You could adjust the clubpenalty and widowpenalty:

\startsetups [mypenalties]
  %% \setdefaultpenalties
  \setpenalties\widowpenalties {2}{100}
  \setpenalties\clubpenalties  {2}{100}
\stopsetups

\setuplayout [setups=mypenalties]

Marco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-26 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 21:11 Orphan issue with \startitemize Bruce Horrocks
2020-11-26 21:41 ` Marco Patzer

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).