From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88217 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Leave out reference to page if on the same page? Date: Fri, 25 Jul 2014 10:34:27 -0400 Message-ID: <53D26AF3.2070900@rik.users.panix.com> References: <9B2F0029-A808-473D-99C1-D3CC9AAE5A7C@rna.nl> <53D05484.3040803@panix.com> <7A5A73AF-CB29-45CC-A070-A83FA3DFE41D@gmail.com> <53D23A47.9030200@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406298892 20511 80.91.229.3 (25 Jul 2014 14:34:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 14:34:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 25 16:34:47 2014 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 1XAga3-0004Kv-O7 for gctc-ntg-context-518@m.gmane.org; Fri, 25 Jul 2014 16:34:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5EDC4102A5 for ; Fri, 25 Jul 2014 16:34:43 +0200 (CEST) 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 KncQf5BuintO for ; Fri, 25 Jul 2014 16:34:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0770210227 for ; Fri, 25 Jul 2014 16:34:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7B0A101EC for ; Fri, 25 Jul 2014 16:34:30 +0200 (CEST) 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 4PsTlEng-QR1 for ; Fri, 25 Jul 2014 16:34:29 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id C4AFC101E2 for ; Fri, 25 Jul 2014 16:34:29 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6PEYS6a024816 for ; Fri, 25 Jul 2014 16:34:29 +0200 Original-Received: from [192.168.201.10] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id C7C5B2EE9B for ; Fri, 25 Jul 2014 10:34:27 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <53D23A47.9030200@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=Richmond Hill; latitude=40.7005; longitude=-73.8345; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VMuCys3u - cce99015432c - 20140725 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:88217 Archived-At: On 2014-07-25 07:06, Hans Hagen wrote: > On 7/24/2014 2:03 PM, Otared Kavian wrote: >> Hi, >> >> Thanks for your attention, Wolfgang: indeed removing >> \analyzecurrentreference >> from your example allows mkiv to typeset correctly and obtain the >> expected result. > > > .... > > yet another sparsely documented feature ... in beta: > > % tests/mkiv/pagestate-001.tex > > \useMPlibrary[dum] > > \setuppagenumbering > [alternative=doublesided] > > % new: \setupreferencing[doublesided=no] > > % old: \somewhere{backward}{foreward}[label] > % new: > \someplace{preceding}{backward}{current}{foreward}{following}[label] > % old: \atpage[#label] > % new: > \doifcheckedpagestate{label}{preceding}{backward}{current}{foreward}{following}{otherwise} > > \starttext > > \dorecurse {20} { > \placefigure > [here] > [fig:#1] > {} > {\externalfigure[dummy]} > \dorecurse {20} { > ##1: \atpage[fig:##1] / > \doifcheckedpagestate{fig:##1} > {preceding} > {backward} > {current} > {foreward} > {following} > {otherwise} > } > } > > \stoptext > > if okay, then it's something to wikify ... should > \setupreferencing[doublesided=no] be default? (currently yes i.e. > spread aware) > > keep in mind that this kind of functionality once it kicks in (is > used) can result in a few more runs to get thing right and that > there's always the danger of oscillation as the text injected is > dependent on the situation > > Hans This looks very promising. When I test it with today's beta, I see that "current" is set in some iterations, but never shows up in the final version of the page, so references on the same page always come out as "backward" or "forward". I would think that the default should match the default for \setuppagenumbering[alternative=], and perhaps be tied to that. -- Rik Kabel ___________________________________________________________________________________ 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 ___________________________________________________________________________________