From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85482 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: bug: \getmarking with mixedcolumns Date: Tue, 26 Nov 2013 16:54:35 -0500 Message-ID: <5295189B.4020904@sil.org> References: <528E3765.5050802@sil.org> <528E4A91.807@sil.org> <528FCDE3.2090205@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 1385502881 1694 80.91.229.3 (26 Nov 2013 21:54:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 21:54:41 +0000 (UTC) Cc: Chad White To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 26 22:54:48 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 1VlQal-0006wo-Bi for gctc-ntg-context-518@m.gmane.org; Tue, 26 Nov 2013 22:54:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D1B210203; Tue, 26 Nov 2013 22:54:46 +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 30nVzYqbc01U; Tue, 26 Nov 2013 22:54:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 90201101E9; Tue, 26 Nov 2013 22:54:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25A94101E9 for ; Tue, 26 Nov 2013 22:54:41 +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 6m+A5y8gNa47 for ; Tue, 26 Nov 2013 22:54:39 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 63294101E3 for ; Tue, 26 Nov 2013 22:54:39 +0100 (CET) Original-Received: from mail-yh0-f46.google.com (mail-yh0-f46.google.com [209.85.213.46]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAQLsa6g007825 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 26 Nov 2013 22:54:38 +0100 Original-Received: by mail-yh0-f46.google.com with SMTP id l109so4501518yhq.33 for ; Tue, 26 Nov 2013 13:54:36 -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 :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=pakxN78YJLinO4TJaAazKb/Poq91DDvYOLmHVP0K1yY=; b=EVxCU4Yj+az72mip3B3hhroMWmb+GW/VpMGDtsA1JWiF3iSa0uKPiAZRNtEstlvPEK Ff08yfgsQhKl1c179oxHBSO1egL5LKL3EIesyk5VA77A5zwjZcjfrJPvhCGth+4fMxjU kHJoBAf232DhfG997daNFNn24eUu7uTLo2yAqFFJVIDvYFkQSEFe1wjPdZP4O7LAPMcb lqwmXSE4Oa+EdexS022UsH1Q8tsNDQ9HNBBxxo9/zxBxdRd9/98QzCL+tcbNIV00nlyb ae8coyNqS9uJL2eyT5KamIlGCOcUpqT8PDONU69YwNfG9Uy0OCsiiN6uhfhTuwg1v/1e /+iw== X-Gm-Message-State: ALoCoQkfBSAwEDq7Hc2vyCvwdnxwMmc35JuiMtbkHaClgNeorvdKZXTx4n2UQqZy7VF7hjLhojU4 X-Received: by 10.236.123.165 with SMTP id v25mr393586yhh.112.1385502876389; Tue, 26 Nov 2013 13:54:36 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id e39sm85540329yhq.15.2013.11.26.13.54.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 13:54:35 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <528FCDE3.2090205@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.46; 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: 0TKSlSBtX - 2c61ddd6b7f4 - 20131126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:85482 Archived-At: On 11/22/2013 4:34 PM, Hans Hagen wrote: > On 11/21/2013 7:01 PM, Lars Huttar wrote: > >> I now have a MWE that shows the problem. >> Where top and bottom work fine outside of columns, in mixedcolumns, any >> keyword I use with \getmarking always seem to return the *last* item on >> the page. Here's the MWE: > > I changed the example a bit > > \setupbodyfont[dejavu] > > \definemarking[country] > > \startsetups myheader > > (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) > > \hfill > > (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom]) > > \stopsetups > > \setupheadertexts > [\setups{myheader}][] > [][\setups{myheader}] > > \def\anothersection#1% > {\par > \dontleavehmode > \marking[country]{#1}% > \start\bf #1 \endgraf\stop > \quad > test > \par} > > \starttext > \startmixedcolumns[distance=5mm, balance=yes] > \anothersection{Brazil} > %\anothersection{Suriname} > %\anothersection{Uruguay} > %\anothersection{Bolivia} > %\anothersection{Venezuela} > \anothersection{Peru} > \stopmixedcolumns > \stoptext > > The problem, is/was that mixed columns had not yet mark > synchronization enabled. I uploaded a new beta. When I use the new beta (using 2013.11.26), marking works better, with the following caveats: 1) The column number argument is required; using \getmarking[country][top] instead of \getmarking[country][1][top] still returns the wrong value. This is not a problem for us, but it's important to know, because if you leave out the column number argument, there is no error given, and AFAIR the documentation doesn't tell you it's required. 2) Sometimes \getmark[country][n][bottom] returns the country at the top of column n+1 (or column 1 on the next page). In your example above, \getmarking[country][1][bottom] shows Peru, which is in column 2, instead of Brazil. This can be a significant problem for us, unless we can find a way to fix it. Did you get a different result? > In the process I also made marks a bit more restrictive but it might > have (yet unknown) side effects. > > \enabledirectives[marks.boxestoo] > > can be used to see the effect of this. > I tried this with your example above, but didn't see anything change. Are we supposed to see some colored boxes around the marks? Thanks again, 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 ___________________________________________________________________________________