From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75868 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Re: Registers with distinguishable entries. Date: Thu, 26 Apr 2012 19:59:01 +0200 Message-ID: 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: dough.gmane.org 1335463149 12101 80.91.229.3 (26 Apr 2012 17:59:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2012 17:59:09 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 26 19:59:09 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SNSyA-0005PF-Ln for gctc-ntg-context-518@m.gmane.org; Thu, 26 Apr 2012 19:59:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B116101E2; Thu, 26 Apr 2012 19:59:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JWBvwBEOrY1q; Thu, 26 Apr 2012 19:59:04 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8857101E3; Thu, 26 Apr 2012 19:59:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01A4E101E3 for ; Thu, 26 Apr 2012 19:59:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GPxPaYZCIGyI for ; Thu, 26 Apr 2012 19:59:03 +0200 (CEST) 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 20B7E101E2 for ; Thu, 26 Apr 2012 19:59:03 +0200 (CEST) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q3QHx1rO014817 for ; Thu, 26 Apr 2012 19:59:02 +0200 Original-Received: by iajr24 with SMTP id r24so2801276iaj.14 for ; Thu, 26 Apr 2012 10:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AHurUZBGNGtS45Z6TxiFViBi39oaZJ5UOYEh5zz9hGI=; b=KbHHlbCwtBM4HBpl/aNqanshz1U1DA3AQ9bs72891U1oKpKuZb+G/u7RLTZmal6tLP AF/gWlFjqtTmBNf5Zz1Zz+v4qHAMzt3V39sdVye+iYZR9UZtcQSk9jMg8+XuYUaMhQ2q ADldfwr5r6oQm5gNRdC5AVxwHBIq5bLG5k6Gk1MlIrtHD8uTXxncavTVUmxzUp+gvGz0 fYx7+5guxqeaeA5HEvnGTVyjVYDICJtixsD46j8Uv3NopkyjwO0pxUjevIcDo0qxKJcf SUBeMBvsFfQvYxqhYOAiyrNy1Ett7PrrFAQFTY7LD9jRPUq2B/2ss9zYJpSdQUEZK6Fq gRwA== Original-Received: by 10.50.168.8 with SMTP id zs8mr7406157igb.37.1335463141099; Thu, 26 Apr 2012 10:59:01 -0700 (PDT) Original-Received: by 10.42.217.198 with HTTP; Thu, 26 Apr 2012 10:59:01 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; 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: 0TH2FX22h - 47e1d859975c - 20120426 (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.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75868 Archived-At: On Thu, Apr 26, 2012 12:53:57 +0200, Philipp Gesang wrote > You want the ?compress? switch in placeregister, or indicate > ranges with \{start,stop}register: > > ???????????????????????????????????????????????????????????????????????? > \defineregister [demo] [demoes] > \starttext > > \demo{Demoitem} foo > \page[yes] > \demo{Demoitem} foo > \page[yes] > %%% Here?s the range; should work without ?compress? > \startregister[demo][demorange]{Demorange} > \demo{Demoitem} foo > \page[yes] > \demo{Otheritem} bar > \page[yes] > \demo{Otheritem} bar > \page[yes] > \stopregister[demo][demorange]%% <= you?ll need to explicitly terminate the ranges so they can overlap > \demo{Otheritem} bar > \page[yes] > \demo{Demoitem} foo > \page[yes] > \demo{Demoitem} foo > > \page[yes] > %%%% Here?s the relevant bit: > \placeregister [demo] [compress=yes] > > \stoptext > ???????????????????????????????????????????????????????????????????????? > > Btw. have you read the small print: http://wiki.contextgarden.net/Registers#Tricks ? > Thank you, Philipp, This works perfectly. I had seen the small print in that page but had obviously not read it carefully enough. So two of my problems are solved, the main wish, to be able to make an index with distinguishable entries, is still unfulfilled, not only for me but for at least two others. Let's someone on the list can shine some light on that one too. Kind regards, Robert ___________________________________________________________________________________ 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 ___________________________________________________________________________________