From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85355 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: a way to implement \testcolumn in mixedcolumns Date: Wed, 20 Nov 2013 17:12:56 -0500 Message-ID: <528D33E8.1030509@sil.org> References: <528D2E0E.5020804@sil.org> 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 1384985580 7818 80.91.229.3 (20 Nov 2013 22:13:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2013 22:13:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 20 23:13:06 2013 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 1VjG1C-0005pj-JH for gctc-ntg-context-518@m.gmane.org; Wed, 20 Nov 2013 23:13:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C922610206; Wed, 20 Nov 2013 23:13:05 +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 ECJ3Qdn-04WI; Wed, 20 Nov 2013 23:13:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 652C1101EA; Wed, 20 Nov 2013 23:13:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 22A13101EA for ; Wed, 20 Nov 2013 23:13:02 +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 DiHdJEv4bLdL for ; Wed, 20 Nov 2013 23:13:00 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 587E5101E5 for ; Wed, 20 Nov 2013 23:13:00 +0100 (CET) Original-Received: from mail-yh0-f45.google.com (mail-yh0-f45.google.com [209.85.213.45]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAKMCvLu018082 for ; Wed, 20 Nov 2013 23:12:59 +0100 Original-Received: by mail-yh0-f45.google.com with SMTP id i7so5879500yha.18 for ; Wed, 20 Nov 2013 14:12:57 -0800 (PST) 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:content-type :content-transfer-encoding; bh=DlGG+pPhr8/lxZ4egZ1lhyOpV3wHw4ltV6cQMAUZCRk=; b=CTs6rglsg+FIK4YQaY5KRgi6pNECZIFbTGh8czwo8Ntd/3ONStFLqKUXEimq9RZ6Gx 24IZ5Sq9XxDNrUEyc8pB0/JYroa5QqkHQx4RXRx3k1Tj4jkRhige9VmKaK/w0Ln1IvxF PApM4O9UqIQ0cXjk0t9fVUmFFfoA2YK1xcYR4LLZIWvlP2txdhhHeICGh0rrp0tGnL6C PEcVJ9NFPC7UA7hYFN1xddgsEwTHI7g9h9AMwKaJmwnpAi5NsoAlPAZsa+xTEsuvpnTO RETVIju/mshZK3TbRFx7gIqs1cIqRAbzCq/h1YZQW4jSKPGo/ZxahOCOxFRi614UCphy o9bg== X-Gm-Message-State: ALoCoQlV5vOWnuhdbT7Ajn9M0m0y57dZL+dCGC2CsYbwNjzzuSjdLjiZOKpItXvGbEtkuCcn4RCg X-Received: by 10.236.102.200 with SMTP id d48mr2614556yhg.38.1384985577193; Wed, 20 Nov 2013 14:12:57 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id v45sm45186811yha.2.2013.11.20.14.12.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Nov 2013 14:12:56 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <528D2E0E.5020804@sil.org> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.45; 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: 03KPWcWqz - 349d21628d94 - 20131120 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:85355 Archived-At: On 11/20/2013 4:47 PM, Lars Huttar wrote: > However one thing we do miss from columnsets is the control over widows > & orphans in two ways: \testcolumn, and \setupcolumnsetlines. > \testcolumn[n] allowed us to do a conditional column break, so when we > were about to start a new subsection heading, we could prevent it being > an orphan at the bottom of the column; and when starting a paragraph > with a hangaround graphic framed flushright and bottom, we could > similarly use \testcolumn to prevent the graphic from hanging down into > the footer (which is what sometimes happened otherwise). > > So I'm wondering, is there some way to achieve the equivalent of > \testcolumn in mixedcolumns? Here is a MWE: \starttext \startmixedcolumns[distance=5mm, balance=yes] \dorecurse {20} { \testcolumn[8] \subsection{Subsection Heading} \input knuth \endgraf } \stopmixedcolumns \stoptext You can see that the heading for subsection 6 is an orphan at the bottom of a column (at least, with the paper size settings I have; otherwise, I'm sure it happens somewhere else). If \testcolumn worked, the \testcolumn[8] would have shoved the subsection heading to the next column, because there was not space for 8 lines left in the column at that point. Any thoughts on how to fix this kind of occurrence? Thanks, Lars ___________________________________________________________________________________ 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 ___________________________________________________________________________________