From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81649 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: strange index behaviour with entries inside separatedlist Date: Fri, 12 Apr 2013 11:59:56 +0200 Message-ID: <5167DB1C.9080406@wxs.nl> References: <5E2F8B83-6512-4582-9785-332E9FA092D6@gmail.com> 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 1365760809 26063 80.91.229.3 (12 Apr 2013 10:00:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 10:00:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 12 12:00:13 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQamD-0002X2-1o for gctc-ntg-context-518@m.gmane.org; Fri, 12 Apr 2013 12:00:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EFA91054F; Fri, 12 Apr 2013 11:59:52 +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 Jvw8-qtCy48T; Fri, 12 Apr 2013 11:59:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D77691039C; Fri, 12 Apr 2013 11:59:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AFD261039C for ; Fri, 12 Apr 2013 11:59:49 +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 xAU-L4j3MRhf for ; Fri, 12 Apr 2013 11:59:48 +0200 (CEST) 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 99FA1101EC for ; Fri, 12 Apr 2013 11:59:48 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3C9xlDt003916 for ; Fri, 12 Apr 2013 11:59:47 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 15699-1713362 for multiple; Fri, 12 Apr 2013 11:59:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <5E2F8B83-6512-4582-9785-332E9FA092D6@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJmVXLRU - 1cd329e6dad7 - 20130412 (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:81649 Archived-At: On 4/12/2013 10:29 AM, Wolfgang Schuster wrote: > > Am 12.04.2013 um 08:10 schrieb WolfgangZ : > >> Hello, >> I get wrong list entries when using my register entries inside separate lists. Example case included, even if it is a bit longer. For explanation, I have two lists, the correct index is in section 1.2 in the attached example and printed on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 (green table) and printed on page 5. There the index links to page 4 instead of page 1, on which the entry is placed. >> >> The example gets more strange, as the wrong index entries only occurs if there is no regular text below the table in section 1.3. For testing you can uncomment line 70 in file test.tex. > > Put the text before the index entry in your definition in \Listwrong the output is correct: > > \define[1]\Listwrong{#1\Wrongliste{#1}} indeed .. an entry needs to be bound to something and when in vmode it gets bound to the next paragraph (otherwise we get weird spacing interference) .. one of these tex-chicken-egg issues wolfgangs solution is the most efficient and definitely the way to do in when wrapping in macros in this case, the flush is delayed to the next valid paragraph ... anyway, i sort of fixed it for tables .. at some point i will revise the whole binding issue (but it's somewhat tricky as lots of mechanisms then need testing) in the next beta this works : \setupinteraction[state=start] \starttext \bTABLE \bTR \bTD \index{test 1} entry 1 \eTD \eTR \eTABLE \page \bTABLE \bTR \bTD \index{test 2} entry 2 \eTD \eTR \eTABLE \page \placeregister[index][n=1] \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________