From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95912 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: bug in widows and orphans prevention? Date: Tue, 23 Aug 2016 20:46:34 +0200 Message-ID: <57BC9A0A.9050909@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5763398125322070380==" X-Trace: blaine.gmane.org 1471978023 9793 195.159.176.226 (23 Aug 2016 18:47:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2016 18:47:03 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 23 20:46:58 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcGiw-00027N-In for gctc-ntg-context-518@m.gmane.org; Tue, 23 Aug 2016 20:46:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 325AB15529; Tue, 23 Aug 2016 20:46:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dpb2oCpvg-iu; Tue, 23 Aug 2016 20:46:50 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6372C15235; Tue, 23 Aug 2016 20:46:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E0F3115235 for ; Tue, 23 Aug 2016 20:46:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id II4l9DpOiRXI for ; Tue, 23 Aug 2016 20:46:48 +0200 (CEST) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 73BE6151FA for ; Tue, 23 Aug 2016 20:46:38 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id f65so173453662wmi.0 for ; Tue, 23 Aug 2016 11:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=BWXyU5+UnfqcfiWISq2nOIIYX8W7+N36mUYAKi+diiM=; b=bNTOAJf84KoKG1HL7PSFbC0KKbaGthPF1Bqf0lXb82lp2b2MYjQB17nccRRkwBr9lV O/CK20Scno+bTFI0F0Qp5PAbJbogmu3Lj1zbyu2CjeuZMwWyhhlnqTyv8UBlVDU71ZSD O0mTEkEhgwb1lVXRAfXh5hXQlz5OZzuYKJ+ZOR3JZV2iqaWRCg3YXIEa3lODANLOA54F 6e3LR9QzUTbkOs9LLkyY5C9bq0Zi2qWAhd6FZoO6gazyiFYHrQ4ElnPD9DQLSrlzvEu9 ae15jLSWtkk2MPzE9b2Ae32W8dSizTlM4XNcB0sYYwwkiC4kCsuQrczyWlqvhEmYc3FF KVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=BWXyU5+UnfqcfiWISq2nOIIYX8W7+N36mUYAKi+diiM=; b=lCRRkn8sYDGW8RKOerZPteJzLdUjp7WMmhl2aM5a/QheUdSiYyBzuaPw9ydwOzFoXA Y5w/4uqJoZLFS5CPctryhpS0F11/DIWJrRu0SOaK4eqNW48M1u+N7iCPKUAhNCyM2qQX kFzHzLKGBjdlX7C83zjeY6TX9CgFmmahMrWjI15wndeolBtYf99yc2rtl/HMRoij86yQ XdMwLrBMb+gdCu1Yh44Pe7XM5IwQ+WNtnMF4ZwvWIxeIKovkA6PXpb2vNTxSlgFjJM0K U31v+qaLNRrQzrGtwjO6PIJMcecIXQhAm6vcKUNXAUViMvJr9QPLjIZZ0tDJKiVQpfDT Q+Cg== X-Gm-Message-State: AEkoousIkaJ0NYY4sm/TlQUYr4gihYuk25+V8fuhqr94cvXXGBAWvNoWJm+CxKdJvB449Q== X-Received: by 10.194.184.39 with SMTP id er7mr23351981wjc.159.1471977997899; Tue, 23 Aug 2016 11:46:37 -0700 (PDT) Original-Received: from keima.localdomain (x2f21e58.dyn.telefonica.de. [2.242.30.88]) by smtp.gmail.com with ESMTPSA id p71sm28997347wmf.9.2016.08.23.11.46.36 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Aug 2016 11:46:37 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95912 Archived-At: This is a multi-part message in MIME format. --===============5763398125322070380== Content-Type: multipart/alternative; boundary="------------060108030308040302050508" This is a multi-part message in MIME format. --------------060108030308040302050508 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pablo Rodriguez > 23. August 2016 um 20:35 > Dear list, > > I have the following sample: > > \showframe\showgrid > \startsetups[orphanwidow] > \setup[reset] > \widowpenalty=10000 > \clubpenalty=10000 > \brokenpenalty=1 > \stopsetups > \setuplayout[setups={orphanwidow}] > \setupbodyfont[12.5pt] > %~ \setupbodyfont[pagella] > \starttext > \dorecurse{10}{\input zapf\par} > \stoptext > > With both typefaces (Latin Modern at 12.5pt and TeX Gyre Pagella at > 12pt), I get an orphan line on the second page. > > Have I hit a bug or am I missing something? You can use the \setpenalties command which gives you more options. \startsetups[orphanwidow] \directsetup{*reset} \setpenalties \widowpenalties{1}{10000} \setpenalties \clubpenalties {1}{10000} \brokenpenalty\plusone \stopsetups Wolfgang --------------060108030308040302050508 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
23. August 2016 um 20:35
Dear list,

I have the following sample:

\showframe\showgrid
\startsetups[orphanwidow]
\setup[reset]
\widowpenalty=10000
\clubpenalty=10000
\brokenpenalty=1
\stopsetups
\setuplayout[setups={orphanwidow}]
\setupbodyfont[12.5pt]
%~ \setupbodyfont[pagella]
\starttext
\dorecurse{10}{\input zapf\par}
\stoptext

With both typefaces (Latin Modern at 12.5pt and TeX Gyre Pagella at
12pt), I get an orphan line on the second page.

Have I hit a bug or am I missing something?
You can use the \setpenalties command which gives you more options.

\startsetups[orphanwidow]
    \directsetup{*reset}
    \setpenalties \widowpenalties{1}{10000}
    \setpenalties \clubpenalties {1}{10000}
    \brokenpenalty\plusone
\stopsetups

Wolfgang
--------------060108030308040302050508-- --===============5763398125322070380== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5763398125322070380==--