From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58531 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: strange page break Date: Wed, 05 May 2010 16:50:32 +0200 Message-ID: <4BE185B8.3080201@elvenkind.com> References: <20100504053845.GA6251@gaston.couberia.bzh> <4BE1598C.1040207@elvenkind.com> <20100505143808.GA25000@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273071054 23029 80.91.229.12 (5 May 2010 14:50:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 14:50:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 05 16:50:53 2010 connect(): No such file or directory 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 1O9fw2-0005OT-L3 for gctc-ntg-context-518@m.gmane.org; Wed, 05 May 2010 16:50:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41B48C9BBC; Wed, 5 May 2010 16:50:49 +0200 (CEST) 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 xo5uwlbP4pEc; Wed, 5 May 2010 16:50:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01789C9B59; Wed, 5 May 2010 16:50:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 74DA1C9BB3 for ; Wed, 5 May 2010 16:50:44 +0200 (CEST) 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 Xlej2gsUFPW1 for ; Wed, 5 May 2010 16:50:33 +0200 (CEST) Original-Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by balder.ntg.nl (Postfix) with ESMTP id 238BCC9B59 for ; Wed, 5 May 2010 16:50:33 +0200 (CEST) Original-Received: from [192.168.178.26] (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id o45EoWSC012243 for ; Wed, 5 May 2010 16:50:32 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.23 (X11/20090822) In-Reply-To: <20100505143808.GA25000@gaston.couberia.bzh> X-Virus-Scanned: by XS4ALL Virus Scanner 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:58531 Archived-At: Peter M=FCnster wrote: > On Wed, May 05 2010, Taco Hoekwater wrote: > = >> Looks rather normal here, see attached (ver: 2010.05.02 16:43) > = > A better page break would be after the last line of section 7: Oh, I see. Yes, it is odd that that last line is taken over to the second page in the original test file. But the same thing happens in mkii, so I suspect this is an unavoidable side-effect of page breaking. What happens is that TeX first attempts the break after two lines into section 7 and finds a badness value for that. Then it tries the third line, and finds another badness value for that. Normally, TeX considers the break after the second line better, but in your second example the \page adds a big negative penalty for the third line which skews the result in favor of that line. (TeX's page break algorithm is not all that smart really, because it does not know about sectioning at all: it only sees lines and penalties). Best wishes, Taco ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________