From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85554 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, 03 Dec 2013 09:10:43 -0500 Message-ID: <529DE663.50603@sil.org> References: <528D2E0E.5020804@sil.org> <52978CBA.3030109@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 1386079855 25079 80.91.229.3 (3 Dec 2013 14:10:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 14:10:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 03 15:11:01 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 1Vnqgm-00087q-Vi for gctc-ntg-context-518@m.gmane.org; Tue, 03 Dec 2013 15:11:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24CD310210; Tue, 3 Dec 2013 15:10:58 +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 5wh8B8St390J; Tue, 3 Dec 2013 15:10:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0D97C101E5; Tue, 3 Dec 2013 15:10:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AFA54101E5 for ; Tue, 3 Dec 2013 15:10:50 +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 aivQ-wzzUMFg for ; Tue, 3 Dec 2013 15:10:48 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id CF417101E3 for ; Tue, 3 Dec 2013 15:10:48 +0100 (CET) Original-Received: from mail-yh0-f50.google.com (mail-yh0-f50.google.com [209.85.213.50]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rB3EAjHs030602 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 3 Dec 2013 15:10:47 +0100 Original-Received: by mail-yh0-f50.google.com with SMTP id b6so10264147yha.9 for ; Tue, 03 Dec 2013 06:10:45 -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=k6p9FZumw3ztyVmXMgUXcg2Ib/5gJV+FhDZlld/9Yns=; b=BrmetDGg5eCx1JkHV4glGwM79LXQeWKdhbVx9MZlvKwOJBfcc1rJF2+vwo0KdwiPjK GL9U36l2mlvSKuG84slHO17Hvvsrj09mplDGOKukMV6JZD5HDOg72BK+GyLBMzXJdMYp aAlrn+y/alvt2h6Q5KQmQMhEp9rivgQK6iQ8o2uTMaFshPQ4xosHVuSgGrm3I8LTE46l CJ51WFnqx8b6amGt0DmPgmOqCG6tGbsFig4WMuA8tyxOCHWEvxI/vsH7bVkIqly+K95F YRinHB1ZYgYKNg/aaIjnR/nfcBqbNvyc8RewP666eRFaIYbfY4loviQUNL+c17E/Z+ej jpUA== X-Gm-Message-State: ALoCoQnnUFrzFAF6IcED00+5lmmQpjRytZEqYBty3KD9W5Bnoyko9+FNTELqpj5kN/mDGR1qe0Ta X-Received: by 10.236.88.111 with SMTP id z75mr1946402yhe.84.1386079844798; Tue, 03 Dec 2013 06:10:44 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id r98sm1162926yhp.3.2013.12.03.06.10.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 06:10:44 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <52978CBA.3030109@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.50; 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: 0WKV2aK20 - ca6cb88af468 - 20131203 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:85554 Archived-At: On 11/28/2013 1:34 PM, Hans Hagen wrote: > > That macro was never meant for mixed columns. I made a variant that > works ok in mixed columns which will be in the next beta. > > \setuptolerance[verytolerant] > > \starttext > > \startmixedcolumns > > \dorecurse{4}{\input ward \par} > > \testcolumn[10][-1pt] % 10 lines - 1pt slack > > \dorecurse{2}{\input ward \par} > > \stopmixedcolumns > > \stoptext Ok. It looks like the second parameter to \testcolumn is now required (it didn't used to be). What does this slack value do? Does it mean that the minimum amount of space left in the column is 10 lines minus 1pt? Also, in the Dec. 2 beta (current version: 2013.12.02 15:22), the \column command now causes an error when we come to the \stopmixedcolumns. I don't know if it's connected with the above change, or something else. MWE: change the \testcolumn command above to \column. I get the following error output: ! LuaTeX error C:/context/tex/texmf-context/tex/context/base/page-mix.lua:474 : attempt to compare number with nil stack traceback: C:/context/tex/texmf-context/tex/context/base/page-mix.lua :474: in function 'process_penalty' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :572: in function 'setsplit' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :687: in function 'setsplit' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :819: in function 'mixsetsplit' [string "\directlua "]:1: in main chunk. system > tex > error on line 14 in file C:/Users/Huttar/Documents/work/tex/test-beta-testcolumn.tex: LuaTeX error ... 4 5 \startmixedcolumns 6 7 \dorecurse{4}{\input ward \par} 8 9 %\testcolumn[10][-1pt] % 10 lines - 1pt slack 10 \column 11 12 \dorecurse{2}{\input ward \par} 13 14 >> \stopmixedcolumns 15 16 \stoptext 17 \ctxcommand #1 -\directlua {commands.#1} \page_mix_routine_construct ...\else false\fi , }} \deadcycles \zerocount \page_mix_routine_continue ...ine_construct \v!no \page_mix_routine_package ... \page_otr_command_routine ...mix_routine_continue \or \page_mix_routine_bala... \page_otr_triggered_output_routine ...and_routine \fi ...eforeoutput \page_otr_triggered_output_routine \relax \the \everyafterout... ... l.14 \stopmixedcolumns ? X Thanks again for your work on this. We're continually reevaluating whether we can use the beta or need to stick with the stable version. At the moment, it looks like we'll be sticking with the stable version. But we'd like to use the beta, if the problems can be ironed out. 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 ___________________________________________________________________________________