From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42696 Path: news.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: \index versus makeindex. Date: Wed, 23 Jul 2008 08:50:03 -0400 Organization: Able Indexers and Typesetters Message-ID: <200807230850.03983.john@wexfordpress.com> References: <200807181338.13462.john@wexfordpress.com> <115224fb0807202316r2de3d5c4ia8c1f85831c54b70@mail.gmail.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 1216817566 32730 80.91.229.12 (23 Jul 2008 12:52:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2008 12:52:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 23 14:53:34 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 1KLdqV-0001NK-Sg for gctc-ntg-context-518@m.gmane.org; Wed, 23 Jul 2008 14:53:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D04E31FC66; Wed, 23 Jul 2008 14:52:31 +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 06006-02-2; Wed, 23 Jul 2008 14:51:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA7F21FD83; Wed, 23 Jul 2008 14:51:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DF1C1FD83 for ; Wed, 23 Jul 2008 14:51:30 +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 04289-02-2 for ; Wed, 23 Jul 2008 14:50:51 +0200 (CEST) Original-Received: from QMTA08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by ronja.ntg.nl (Postfix) with ESMTP id 2C4FE1FD55 for ; Wed, 23 Jul 2008 14:50:50 +0200 (CEST) Original-Received: from OMTA02.westchester.pa.mail.comcast.net ([76.96.62.19]) by QMTA08.westchester.pa.mail.comcast.net with comcast id tPzA1Z0060QuhwU58QqpKF; Wed, 23 Jul 2008 12:50:49 +0000 Original-Received: from c-76-21-131-160.hsd1.md.comcast.net ([76.21.131.160]) by OMTA02.westchester.pa.mail.comcast.net with comcast id tQqo1Z00Q3TnLLU3NQqptb; Wed, 23 Jul 2008 12:50:49 +0000 X-Authority-Analysis: v=1.0 c=1 a=NHEiiME4ExoA:10 a=80V2p89ZhwIA:10 a=U4BriyfjAAAA:8 a=qMoymCQNAAAA:8 a=e_DkmeUKAAAA:8 a=uUH-YOShlVKmFMJW1XsA:9 a=E-mlvgo2-llBTmjAqh0A:9 a=EsGXYnhb7Gf2vV8EvYcA:7 a=aIwdNCOsVA0i2JHQ4ZvaZHxOOzQA:4 a=hUMLWVolzT0A:10 a=LY0hPdMaydYA:10 User-Agent: KMail/1.9.9 In-Reply-To: <115224fb0807202316r2de3d5c4ia8c1f85831c54b70@mail.gmail.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:42696 Archived-At: 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 This facility may exist but the Context manual is a bit hard to follow on indexing. -- John Culleton Resources for every author and publisher: http://wexfordpress.com/tex/shortlist.pdf http://wexfordpress.com/tex/packagers.pdf http://www.creativemindspress.com/newbiefaq.htm http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm ___________________________________________________________________________________ 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 ___________________________________________________________________________________