From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85480 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: Tue, 26 Nov 2013 14:37:20 -0500 Message-ID: <5294F870.5060704@sil.org> References: <528D2E0E.5020804@sil.org> <528D33E8.1030509@sil.org> <528FD3AB.6080809@wxs.nl> <528FDC9F.5080208@sil.org> <52909642.2060900@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 1385494657 18337 80.91.229.3 (26 Nov 2013 19:37:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 19:37:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 26 20:37:42 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 1VlOS5-0002Hu-22 for gctc-ntg-context-518@m.gmane.org; Tue, 26 Nov 2013 20:37:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F5E7101FA; Tue, 26 Nov 2013 20:37:40 +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 ykP-3n6rBwtX; Tue, 26 Nov 2013 20:37:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3FC9A101EA; Tue, 26 Nov 2013 20:37:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EB2C101EA for ; Tue, 26 Nov 2013 20:37:37 +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 8Azig0XE5WGI for ; Tue, 26 Nov 2013 20:37:24 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 67546101E9 for ; Tue, 26 Nov 2013 20:37:24 +0100 (CET) Original-Received: from mail-yh0-f48.google.com (mail-yh0-f48.google.com [209.85.213.48]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAQJbMb6010699 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 26 Nov 2013 20:37:23 +0100 Original-Received: by mail-yh0-f48.google.com with SMTP id f73so4282968yha.7 for ; Tue, 26 Nov 2013 11:37:22 -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=hSUo1AlqUF5zT1eqk7NoYHBOJ9wtGDKhKrAs6FdonBU=; b=KmqM2JOMhFjL8VCumL6K+M5LYAbZhM8tsNyjD8dD872+UUIz8tTc4yY24mE3wnK6JD Ln6KKkiXH5Z22U36tlnmk1R29ab1ZvKk9pep7nXbiBOhCzFM+9ABF8OeIhb1OCxK3b7I 57hYRltQAy9MM43v4AxBrWZrZkL1b9tHtGtEsAMuPMjAGfmFyBF1sbxMBzCAmrl2i6o4 QvD4Na8MZQ6Wjm/ejQ84ed3z7mMIXPETmuV/ajJABk0BVF8cDTErfRx2BxTbteHWEfH+ MFsi7ops22Lw6+DlC8HZgbaPdrllWDfI/Pp9FYcnpDef5NNasAZF7+NaTCykVfImt8ln RRUA== X-Gm-Message-State: ALoCoQmzh/b8NNsQ+LLZJlHbBDmbCFfOHEnN+spncxAh1HiCtu3x14NGaHXtADt+zBkKnH+6SSkV X-Received: by 10.236.137.212 with SMTP id y60mr5522433yhi.64.1385494641671; Tue, 26 Nov 2013 11:37:21 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id g25sm918435yhg.6.2013.11.26.11.37.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 11: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: <52909642.2060900@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.48; 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: 06KSjBnq1 - 3b4f88cec8bd - 20131126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:85480 Archived-At: On 11/23/2013 6:49 AM, Hans Hagen wrote: > On 11/22/2013 11:37 PM, Lars Huttar wrote: >> 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? > > just after the (sub)section title > > i need time to figure out this kind of things in the balancer Hans, here is what I tried (MWE): \setuppapersize[A4] \starttext \section{Introduction} \startmixedcolumns[distance=5mm, balance=yes] \dorecurse {25} { \subsection{Subsection Heading} \penalty10000 If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived their importance. \endgraf } \stopmixedcolumns \stoptext As you see, I tried \penalty10000 after the subsection heading. But in the resulting PDF, on page 3, in the left column, we see a subsection heading at the bottom of the column with nothing below it. So something didn't work. Am I not doing it the way you meant? Thanks for your help, 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 ___________________________________________________________________________________