From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66515 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: No widows and orphans Date: Tue, 1 Mar 2011 18:21:35 +0100 Message-ID: <46A033FB-E668-4EC3-9C70-65C2511322A5@gmail.com> References: <349AD4A4-4D88-432C-92E1-E5DB69279A50@yahoo.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============1006740016==" X-Trace: dough.gmane.org 1299000131 19629 80.91.229.12 (1 Mar 2011 17:22:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 17:22:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 01 18:22:07 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuTGw-0008EN-Tq for gctc-ntg-context-518@m.gmane.org; Tue, 01 Mar 2011 18:22:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 453D6CAA9A; Tue, 1 Mar 2011 18:22:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Cz5IA4g-fhW0; Tue, 1 Mar 2011 18:21:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A998DCAA7F; Tue, 1 Mar 2011 18:21:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B8E1CAA7F for ; Tue, 1 Mar 2011 18:21:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZqxXbolfrtfy for ; Tue, 1 Mar 2011 18:21:41 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 25A65CAA78 for ; Tue, 1 Mar 2011 18:21:41 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p21HLdhj012039 for ; Tue, 1 Mar 2011 18:21:39 +0100 Original-Received: by bwz17 with SMTP id 17so6449793bwz.14 for ; Tue, 01 Mar 2011 09:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=cj5VGSYDA51Mw9vCgOuBi9TgUtJ5IN1JMUWYJzMdNXM=; b=Lg/QsMYpXyyMyCjfeweTA6ZriAeG0+bPOA1B4f8f9Xq/toPE87zZBo0c0n3XKan/7V AtXMXDl/sXqLAsi9USWd8otf64uYdA24Sj+UpYoxnT3usbV5IOPMaCdcPaxiWTrzUgC3 CiJ7M7IHUYcEgx7O/NwOHqPjT5EFgX2Au6wtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=rtuYMtDb8b9LieYzbSkOZpUBxoIL9fOm5Ov1j43yZh7oODyYzSejxKUqq5GVzHkL9n SuFZQy3EgEzVtiYoYy5W8CKxHSqAVo+JdBSRqPp+OkfHTBRqWGWLbMNr415tXuysAPmt SXIO38OLfYPBym19+QLB9wbvieNOUz9H6CgY0= Original-Received: by 10.204.6.195 with SMTP id a3mr1695041bka.61.1299000099022; Tue, 01 Mar 2011 09:21:39 -0800 (PST) Original-Received: from [192.168.2.29] (p5B293BA4.dip.t-dialin.net [91.41.59.164]) by mx.google.com with ESMTPS id q18sm839146bka.3.2011.03.01.09.21.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Mar 2011 09:21:38 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08EdRlDfj - 4641f68f86e4 - 20110301 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66515 Archived-At: --===============1006740016== Content-Type: multipart/alternative; boundary=Apple-Mail-1-717832132 --Apple-Mail-1-717832132 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 01.03.2011 um 18:05 schrieb Cecil Westerhof: > 2011/3/1 Wolfgang Schuster >=20 > Am 01.03.2011 um 17:06 schrieb Philipp Stephani: >=20 > > I don't know whether that still works in ConTeXt, but try > > \interlinepenalty=3D10000 >=20 > It works but it=92s to low level. >=20 > There is also \interlinepenalties and ConTeXts \keeplinestogether = (which use it) command but it doesn=92t work >=20 > \starttext >=20 > \dorecurse{4}{\input tufte\par} >=20 > \keeplinestogether{10} > \input tufte\par >=20 > \stoptext >=20 > If you add before starttext \interlinepenalty=3D10000 it works. But = alas, not in my case. This will change the settings for all paragraphs while = \keeplinestogether only applies for a given number of line for the next paragraph. Maybe this is what you want: \starttext \dorecurse{4}{\input tufte\par} \start\interlinepenalty=3D10000 % keep the setting local \input tufte\par \stop \stoptext Wolfgang --Apple-Mail-1-717832132 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlem= ail.com>

Am 01.03.2011 um 17:06 schrieb Philipp Stephani:

> I don't know whether that still works in ConTeXt, but try
> \interlinepenalty=3D10000

It works but it=92s to low level.

There is also \interlinepenalties and ConTeXts \keeplinestogether (which = use it) command but it doesn=92t work

\starttext

\dorecurse{4}{\input tufte\par}

\keeplinestogether{10}
\input tufte\par

\stoptext

If you add before starttext = \interlinepenalty=3D10000 it works. But alas, not in my case. =

This will change the settings = for all paragraphs while \keeplinestogether
only applies for a = given number of line for the next = paragraph.

Maybe this is what you = want:

\starttext
\dorecurse{4}{\input = tufte\par}
\start\interlinepenalty=3D10000 % keep the setting = local
\input = tufte\par
\stop
\stoptext

Wol= fgang

= --Apple-Mail-1-717832132-- --===============1006740016== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1006740016==--