From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22231 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: Elided page numbers in registers Date: Wed, 31 Aug 2005 16:22:43 +0200 Message-ID: <4315BD33.6080105@seznam.cz> References: <4315B08C.2060501@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1125498657 1801 80.91.229.2 (31 Aug 2005 14:30:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 14:30:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 16:30:45 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EATaT-0001mG-1R for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 16:29:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F92C127D6; Wed, 31 Aug 2005 16:29:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02249-01; Wed, 31 Aug 2005 16:29:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4FD7127C3; Wed, 31 Aug 2005 16:29:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2F57F127C3 for ; Wed, 31 Aug 2005 16:29:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01975-04 for ; Wed, 31 Aug 2005 16:29:06 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 29FEB127B1 for ; Wed, 31 Aug 2005 16:29:05 +0200 (CEST) Original-Received: (qmail 12664 invoked from network); 31 Aug 2005 14:22:24 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 31 Aug 2005 14:22:24 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4315B08C.2060501@capdm.com> X-Antivirus: avast! (VPS 0535-0, 29.08.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22231 Archived-At: Duncan Hothersall wrote: > Another question on registers (just getting into indexing!). >=20 > I have a book which numbers its pages by chapter, and so page numbers > are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for > the pages of chapter 2. >=20 > I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. >=20 > I would like these ranges to be elided - in other words, the first one > would read 1/1-3 (remove repeated chapter number), and the second would= > read 2/24-6 (remove repeated chapter number and also the repeated 2 in > page number). >=20 > Question: is there an already existing system to do this? I guess no :-= ) And I add one more related question: Is it possible to mix \start...\stopregister with just \register? According to this minimal example not. If there is not some secret for= me, can it be extended? Please, focus on Duncan: ---------------------------------------------- \defineregister[Name][Names] \setupregister[Name][pagestyle=3D\it] \setupregister[Name][bf][pagestyle=3D\bf] \starttext Names: \Name[bf::]{Hans} \Name{Taco} \startregister[Name][bf::]{Duncan} \page[yes] \Name{Hans} \stopregister[Name][bf::]{Duncan} \page[yes] \Name{Duncan} \placeregister[Name] \stoptext ---------------------------------------------- Thanks vit > Followup: I would be willing to help to code this if it doesn't exist (= I > have some experience with such systems) if someone can point me at the > right bit of code to look at (things seem to be changing around > texutils, newtexexec etc. so I don't want to start at the wrong place).= >=20 > Thanks... >=20 > Duncan > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ing. V=EDt Z=FDka, Ph.D. TYPOkv=EDtek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D