From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42697 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: \index versus makeindex. Date: Wed, 23 Jul 2008 15:03:27 +0200 Message-ID: <115224fb0807230603pf13eb03q7bb3d5c7c8002f9d@mail.gmail.com> References: <200807181338.13462.john@wexfordpress.com> <115224fb0807202316r2de3d5c4ia8c1f85831c54b70@mail.gmail.com> <200807230850.03983.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216818348 3208 80.91.229.12 (23 Jul 2008 13:05:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2008 13:05:48 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 23 15:06:28 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KLe2K-00067l-HZ for gctc-ntg-context-518@m.gmane.org; Wed, 23 Jul 2008 15:05:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DCB81FDCE; Wed, 23 Jul 2008 15:04:48 +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 08442-01-4; Wed, 23 Jul 2008 15:04:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15E2A1FC44; Wed, 23 Jul 2008 15:04:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4093E1FB74 for ; Wed, 23 Jul 2008 15:04:04 +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 08514-01 for ; Wed, 23 Jul 2008 15:03:28 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by ronja.ntg.nl (Postfix) with ESMTP id 43C4E1FDCC for ; Wed, 23 Jul 2008 15:03:27 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so515249ana.14 for ; Wed, 23 Jul 2008 06:03:27 -0700 (PDT) Original-Received: by 10.100.140.10 with SMTP id n10mr3115439and.129.1216818207211; Wed, 23 Jul 2008 06:03:27 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Wed, 23 Jul 2008 06:03:27 -0700 (PDT) In-Reply-To: <200807230850.03983.john@wexfordpress.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42697 Archived-At: On Wed, Jul 23, 2008 at 2:50 PM, John Culleton wrote: > On Monday 21 July 2008 02:16:04 am Wolfgang Schuster wrote: >> On Fri, Jul 18, 2008 at 7:38 PM, John Culleton > wrote: >> > Usually I use makeindex for indexing but for my current job I >> > thought the Context \index command would be convenient. However I >> > discovered that the \index command does not provide for page >> > ranges. If I index the same item on pages 46, 47, 48, and 49 >> > makeindex will collapse this into a range of 46-49. Context >> > won't. >> > >> > I looked at the book.tuo file but it does not look like something >> > I can hand-modify. >> > >> > Is there a work-around I have missed or must I revert to >> > makeindex to get a proper index? >> > >> > I am ccing Hans because my posts don't seem to make their way to >> > the list for some reason. Perhaps Comcast has torpedoed me once >> > again. >> >> \placeindex[compress=yes] >> >> Regards, >> Wolfgang > > your suggestion to use compress=yes works well. Thanks. Such > compression is essential in many works. Now I wonder if there is a > Context command like eplain's range commands which occur in pairs: > \sidx[begin]{foo} > ... > \sidx[end]{foo} > > The same effect in LaTeX is a bit more cryptic: > \index{foo|(} > ... > \index{foo|)} > > Either form includes all the pages between the two commands as entries > under foo, e.g., > foo 24-68 \startregister[index][knuthrange]{knuth} ... \stopregister[index][knuthrange] Don't know why it is not possible to use \startindex ... \stopindex as short form for \startregister[index] ... \stopregister[index] > This facility may exist but the Context manual is a bit hard to follow > on indexing. The list has many example, you should use "index", "register" or "Steffen Wolfrum" in the search field to find them. Regards, Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________