From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85367 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: bug: \getmarking with mixedcolumns Date: Thu, 21 Nov 2013 13:01:53 -0500 Message-ID: <528E4A91.807@sil.org> References: <528E3765.5050802@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385056917 5180 80.91.229.3 (21 Nov 2013 18:01:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 18:01:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 21 19:02:04 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 1VjYZn-0004iq-V1 for gctc-ntg-context-518@m.gmane.org; Thu, 21 Nov 2013 19:02:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3835910217; Thu, 21 Nov 2013 19:02:03 +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 3bUngilDmhIh; Thu, 21 Nov 2013 19:02:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6BD1F101F7; Thu, 21 Nov 2013 19:02:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8CC4101F7 for ; Thu, 21 Nov 2013 19:01: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 QjgKXPI+IiJs for ; Thu, 21 Nov 2013 19:01:56 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id AD5ED101F6 for ; Thu, 21 Nov 2013 19:01:56 +0100 (CET) Original-Received: from mail-yh0-f43.google.com (mail-yh0-f43.google.com [209.85.213.43]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rALI9PBb014210 for ; Thu, 21 Nov 2013 19:09:26 +0100 Original-Received: by mail-yh0-f43.google.com with SMTP id v1so6673370yhn.2 for ; Thu, 21 Nov 2013 10:01:54 -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=qDxN2pGPg8W3DQiyiPJckDNt7fZ6m6+iygn3VKoOwh0=; b=TDfp18uc9Ee5UdhfsVunxCI4rjGsKRLIG764rDNM82YNDppeodD6rUxfDb+0MYAd3M o2PChPbO/hfBhMux84drZaflwxUlfdQOPmt3ifpucG2qqh7xqe83NP0Ca7sZuc44g+z3 wb4XktZPnrtB+1URwJ+b1Ook14oEMj2Zw4wO2BjNVWJuFgba8nazyD1m0cN/D2vds4Cp iALWiTSqATGPWedr+iEnH8budZPEtx+3G3PYzdDC5ac6i8Yk1rhqH9aPWiZjqMt/oYTJ lBRtmo6FXrj4Xb/PC+PIBJfKYnNmpc7eXMkkHMJD0Hr53mlEgPc2fyBbO2sJwlB5gKPg wtzQ== X-Gm-Message-State: ALoCoQmEC75pnrxjJ81WpeGMPzC1JDIUSGLqkMmr2/undKtNnTmIVKPUIycL/154dpP26KlVxU3t X-Received: by 10.236.141.132 with SMTP id g4mr1876563yhj.93.1385056914231; Thu, 21 Nov 2013 10:01:54 -0800 (PST) Original-Received: from [172.22.10.212] ([162.40.29.3]) by mx.google.com with ESMTPSA id s46sm50670085yha.27.2013.11.21.10.01.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 10:01:53 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <528E3765.5050802@sil.org> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.43; 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: 01KQi9pdp - 40e4f195c0c2 - 20131121 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:85367 Archived-At: On 11/21/2013 11:40 AM, Lars Huttar wrote: > In a thread from July > (http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer > raised some questions that we have too. They were somewhat answered, but > I'm still not clear on what the meanings of the keywords are. > > On Jul 8, 2013 4:08:33 pm Hans wrote: >> On 7/9/2013 12:30 AM, Marco Patzer wrote: >>> / On 2013=9607=9608 Hans Hagen wrote: >> />/ >> />>>/ I expect the markings on the left and right to be the same and show >> />>>/ A=96C on the first page and D=96E on the second one. Looks like a = bug to >> />>>/ me. >> />>/ >> />>/ use top and bottom >> />/ >> />/ This works. Thanks. >> />/ >> />>/ -- previous : last before sync >> />>/ -- next : first after sync >> />>/ >> />>/ -- top : first in sync >> />>/ -- bottom : last in sync >> />>/ >> />>/ -- first : first not top in sync >> />>/ -- last : last not bottom in sync >> />/ >> />/ That is exactly what's in the wiki (Command/getmarking). To my >> />/ defence: The manual (chapter 12.4) is outdated, it lists: >> />/ >> />/ previous - the last of the previous page >> />/ first - the first of the actual page >> />/ last - the last of the actual page >> />/ both - first =97 last >> />/ all - previous =97 first =97 last >> />/ >> />/ I have no idea what =93first not top in sync=94 means, in contrast to >> />/ =93first of the actual page=94, which is quite clear but wrong on a >> />/ current MkIV. >> / >> old tex terminology ... in mkiv i don't use the build-in-tex marks at = >> all (too much juggling needed to get things right) > So I'm wondering ... Hans, since the descriptions you posted are old tex > terminology, what do previous/next/top/bottom/first/last/etc. mean in > current terminology? > I agree with Marco that the descriptions in the ref manual are much > easier to understand, but appear to be wrong; and do not include top/bott= om. > I'll be happy to update the ref manual and the wiki if I can get clear > and accurate information. > > We have run many examples here, including the ones on the getmarking > wiki page, trying to understand what these keywords mean. > top/bottom do appear to do what we need in an MWE, but are not working > for us in the real document, and knowing the meaning of these keywords > would be very helpful in troubleshooting the problem. > > Thanks, > Lars > = 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: \definemarking[country] %\startsetups myheader %F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last] %\hfill %T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom] %\stopsetups \startsetups myheader F: \getmarking[country][first] - L: \getmarking[country][last] \hfill T: \getmarking[country][top] - B: \getmarking[country][bottom] \stopsetups \setupheadertexts[\setups{myheader}][][][\setups{myheader}] \def\anothersection#1{ \marking[country]{#1} {\bfb #1 \endgraf} \dorecurse{1}{\input knuth \endgraf} \marking[country]{#1} } \starttext \startmixedcolumns[distance=3D5mm, balance=3Dyes] \anothersection{Brazil} \anothersection{Suriname} \anothersection{Uruguay} \anothersection{Bolivia} \anothersection{Venezuela} \anothersection{Peru} \stopmixedcolumns \stoptext When you run the MWE, you see that all the fields in the page header show the same value: whatever country appears last on the page. (Or even, depending on how you tweak the length of the country text, if the next page starts with a new country, you'll get that new country for the old page.) I also tried using column numbers, in imitation of the columnsets example on the wiki at http://wiki.contextgarden.net/Command/getmarking \startsetups myheader F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last] \hfill T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom] \stopsetups But this didn't appear to make any difference. Maybe it works for columnsets but not for mixedcolumns. Does anyone know how to get correct results for \getmarking in mixedcolumns? Thanks, Lars ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________