From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87662 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: sections Date: Sun, 01 Jun 2014 20:18:34 +0200 Message-ID: <538B6E7A.1020204@gmx.es> References: <538B13B9.1030700@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401646741 21301 80.91.229.3 (1 Jun 2014 18:19:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2014 18:19:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 01 20:18:57 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrALR-0003oB-2G for gctc-ntg-context-518@m.gmane.org; Sun, 01 Jun 2014 20:18:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98F091022A for ; Sun, 1 Jun 2014 20:18:56 +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 AjlPJLeEGQEy for ; Sun, 1 Jun 2014 20:18:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A1AC6101F6 for ; Sun, 1 Jun 2014 20:18:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91AF7101E3 for ; Sun, 1 Jun 2014 20:18:47 +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 iKa88FofY0FA for ; Sun, 1 Jun 2014 20:18:45 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id CA20D101E2 for ; Sun, 1 Jun 2014 20:18:40 +0200 (CEST) Original-Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s51IIdHJ019257 for ; Sun, 1 Jun 2014 20:18:39 +0200 Original-Received: from [192.168.1.33] ([83.52.97.162]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MXIsl-1XMhPE2Dor-00WCLH for ; Sun, 01 Jun 2014 20:18:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <538B13B9.1030700@wxs.nl> X-Provags-ID: V03:K0:URUs0bZ4ovoROZf3r/2Cn/sGhuCKADjxfHaCgOtAW1psAv4C7l8 ipsUl1DASweVbx0WpbwvI3OtcgbnCozXD+vmL9YRXOxNxFs7QC/Lj4cSeGZHatbDOgKNvXs nc6CvbDZ+im0LWpL7k9yChVGCbZ06fKQAkzqF3tubhNmor0yUmpLIuPrNOkQsGD5n2YDpaF vDHFqHHh1qMbjxuijJqSA== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=74.208.4.200; country=US; region=Pennsylvania; city=Wayne; latitude=40.0440; longitude=-75.3877; http://maps.google.com/maps?q=40.0440,-75.3877&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QM96iDwL - 3995f037a829 - 20140601 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87662 Archived-At: Hi Hans, I found out that the issue I wrote about in my previous message is about widow and orphan lines. Here is the sample: \showframe\showgrid \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=10000 \clubpenalty=10000 \stopsetups \setupbodyfont[pagella,15pt] \starttext \chapter{Chapter} \section{Section} \dorecurse{103}{\ConTeXt\ is fun! } \subsection{Subsection} \ConTeXt\ is fun! \stoptext Many thanks for your excellent work, Pablo On 06/01/2014 01:51 PM, Hans Hagen wrote: > Hi Pablo, > > The section breaks are a bit of a headache. In the old mechanism (also > mkii) we used penalties between different section levels (different > values so that there is some hierarchy). > > In mkiv we have a weighted penalty/glue mechanism which has advantages > but can also create side effects. The method of a few weeks ago coul > deal with > > \section followed by 100 \subsections > > i.e. no text between this. In a strict mechanism you end up with one > long page fur to all the penalties. So, there was some precaution for > this. However that didn't work well with content following sections that > prefers breaks (read: section head followed by e.g. itemize or tabulate). > > So, the newer mechanism tries to analyze the page stream which > (currently) is somewhat tricky. That's why we need to iterate to an > acceptable solution. > > Some of these mkiv mechanisms are already a bit old and could be done > better using some newer luatex trickery (but i need tome to do that). > > It would be nice to have a large test case for this (sort of hard to > make one as some trial and error is involved). As you already have some, > best collect them for future reference. > > A new beta ... > > Hans -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________