From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85390 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: Fri, 22 Nov 2013 17:37:19 -0500 Message-ID: <528FDC9F.5080208@sil.org> References: <528D2E0E.5020804@sil.org> <528D33E8.1030509@sil.org> <528FD3AB.6080809@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 1385159844 23534 80.91.229.3 (22 Nov 2013 22:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 22:37:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 22 23:37:30 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 1VjzLu-0001mD-82 for gctc-ntg-context-518@m.gmane.org; Fri, 22 Nov 2013 23:37:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5146510228; Fri, 22 Nov 2013 23:37:29 +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 HMdEQ5OQ9r79; Fri, 22 Nov 2013 23:37:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A8141101FA; Fri, 22 Nov 2013 23:37:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 872BF101FA for ; Fri, 22 Nov 2013 23:37:26 +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 8POF9O8NpcBc for ; Fri, 22 Nov 2013 23:37:25 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id DDC36101F7 for ; Fri, 22 Nov 2013 23:37:24 +0100 (CET) Original-Received: from mail-yh0-f47.google.com (mail-yh0-f47.google.com [209.85.213.47]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAMMbLq9020045 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 22 Nov 2013 23:37:24 +0100 Original-Received: by mail-yh0-f47.google.com with SMTP id 29so1261335yhl.20 for ; Fri, 22 Nov 2013 14:37:21 -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=X6V+8OsosHhZbHzf5Gaw+yJk4OnKoqnK1onXMG8L52U=; b=WKFDWyOSCy7NADvVV3xkWTvQPfkU4xgOkI0If6oUau3u+D/rxmSPgeYDdgcbGCMkUe pZjZYNLZu1vIzWot6mwQhvaKTdyDZh4gyCbtq7jX9JHVfmPRV3suEv5Qz7qvzsnCmM9H jAL12roAQyi9qK27KlocoDO04xdqk/J1totfpjC9LQ2EVpI28tgjIMnGqvnNTUWSPjjv GujbSkESELD0LNcCs//4kau1nWCcjOEfQjLXvtNVAHFJlihIThZnG4mtTPjyChyzklFZ SMiHlktdMQA04sp/83w8oyFr903hlves5P4eDwBLne8FdZAtK4nF+3Qu6g9TXAgZv0hU AAqg== X-Gm-Message-State: ALoCoQmfiPlCgDwK4Gecj/iYl/KvxTYqwW+Yw7QUMefyXzIh4lyVTLg/iH61ogMuWHhKLDrBs9Xh X-Received: by 10.236.176.67 with SMTP id a43mr58735yhm.68.1385159841278; Fri, 22 Nov 2013 14:37:21 -0800 (PST) Original-Received: from [172.20.10.148] ([216.50.37.254]) by mx.google.com with ESMTPSA id c44sm59270664yho.20.2013.11.22.14.37.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 14:37:20 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <528FD3AB.6080809@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.47; 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: 08KQKBmzX - ed3babad704e - 20131122 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:85390 Archived-At: On 11/22/2013 4:59 PM, Hans Hagen wrote: > On 11/20/2013 11:12 PM, Lars Huttar wrote: >> 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? > > for the moment add \penalty10000 > OK... where? In the same place we used to use \testcolumn? According to http://www.tug.org/utilities/plain/cseq.html#penalty-rp, "If is 10,000 or larger, TeX will never break a line or a page there. Also, if is -10,000 or less, it will always break a line or a page there [97 and 110]. ... Plain TeX has \break and \nobreak macros which are defined to be: \penalty-10000 and \penalty10000." So it sounds like you're recommending the equivalent of a \nobreak. That wouldn't make sense in the place where we want to conditionally break the column. So I guess you're talking about using it e.g. right after the subsection heading, since we don't want it to break right there? If so, that sounds like it will be helpful for preventing that particular case. I don't think it will work for preventing external figures from hanging down below the bottom of the column though, will it? Because for that to work, we'd have to prevent breaks anywhere in the flowing-around paragraph. And I don't see a way to do that. 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 ___________________________________________________________________________________