* Avoiding widows and orphans (again?)
@ 2011-11-23 14:45 Christian
2011-11-23 15:29 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Christian @ 2011-11-23 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Good day to you,
I saw the related messages in the archive, but I don't really get it.
I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company.
Please enlighten me.
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Avoiding widows and orphans (again?)
2011-11-23 14:45 Avoiding widows and orphans (again?) Christian
@ 2011-11-23 15:29 ` Hans Hagen
2011-11-23 15:59 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-11-23 15:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 23-11-2011 15:45, Christian wrote:
> Good day to you,
>
> I saw the related messages in the archive, but I don't really get it.
>
> I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company.
\setuplayout[preset=strict]
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Avoiding widows and orphans (again?)
2011-11-23 15:29 ` Hans Hagen
@ 2011-11-23 15:59 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-11-23 15:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 23.11.2011 um 16:29 schrieb Hans Hagen:
> On 23-11-2011 15:45, Christian wrote:
>> Good day to you,
>>
>> I saw the related messages in the archive, but I don't really get it.
>>
>> I'm looking for a (global) setting, that prevents the last line of a paragraph to slip on the next page. If it really must, it shall also drag another one with it for company.
>
> \setuplayout[preset=strict]
It’s also possible to set a certain number of lines with the following:
\starttext
\setpenalties\widowpenalties{3}{10000}
\dorecurse{740}{text }
\stoptext
The number of lines is always “n+1” (3+1) because the penalty is added before the last three lines.
Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2011-11-23 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23 14:45 Avoiding widows and orphans (again?) Christian
2011-11-23 15:29 ` Hans Hagen
2011-11-23 15:59 ` Wolfgang Schuster
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).