From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42610 Path: news.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: Indexing problem solved. Makeindex works with Context! Date: Sat, 19 Jul 2008 13:41:46 -0400 Organization: Able Indexers and Typesetters Message-ID: <200807191341.46976.john@wexfordpress.com> References: <200807191213.26094.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 1216489468 27856 80.91.229.12 (19 Jul 2008 17:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 17:44:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 19 19:45:15 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 1KKGUb-00060R-J6 for gctc-ntg-context-518@m.gmane.org; Sat, 19 Jul 2008 19:45:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 60AAB1FCBB; Sat, 19 Jul 2008 19:44:17 +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 29541-04-4; Sat, 19 Jul 2008 19:43:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B065F1FC90; Sat, 19 Jul 2008 19:43:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE9641FC84 for ; Sat, 19 Jul 2008 19:43:18 +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 29314-02-2 for ; Sat, 19 Jul 2008 19:42:35 +0200 (CEST) Original-Received: from QMTA07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [76.96.30.64]) by ronja.ntg.nl (Postfix) with ESMTP id 6E6C91FC6F for ; Sat, 19 Jul 2008 19:42:34 +0200 (CEST) Original-Received: from OMTA02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id rnvA1Z0060QkzPwA7tiYMf; Sat, 19 Jul 2008 17:42:32 +0000 Original-Received: from c-76-21-131-160.hsd1.md.comcast.net ([76.21.131.160]) by OMTA02.emeryville.ca.mail.comcast.net with comcast id rtiW1Z0033TnLLU8NtiXPr; Sat, 19 Jul 2008 17:42:32 +0000 X-Authority-Analysis: v=1.0 c=1 a=j5_vmBVoSQUA:10 a=5xi-5idpcz0A:10 a=U4BriyfjAAAA:8 a=qMoymCQNAAAA:8 a=e_DkmeUKAAAA:8 a=ZSnJmBK7GN8Zo4i6V_gA:9 a=3hmUikABO71AAaimoOcA:9 a=V3gj-DvYQtdNgw8mAW4whNl6a88A:4 a=LY0hPdMaydYA:10 User-Agent: KMail/1.9.9 In-Reply-To: <200807191213.26094.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:42610 Archived-At: On Saturday 19 July 2008 12:13:25 pm John Culleton wrote: > I discovered an old file in the texsis distribution called > index.tex. Unlike eplain.tex it doesn't cause problems when used > with Context. It creates the book.idx file required by makeindex. > Now the full range of features of makeindex are available to > Context users. The only change needed is trivial, in every \index > statement change the + sign to ! and of course run makeindex > between Context runs. This solution is simple enough and adds > enough power to Context that I suggest it be incorporated into the > texexec program. It doesn't have all the bells and whistles of > eplain but it has enough to produce a professional index. And > since that is part of my business I welcome it. > > For a book named book.tex here is all that is required today: > > \input index.tex %This overwrites the Context \index macro > .... > \index{main item!secondary item} %two level item > ... > \idx{resorted item@``resorted item''} %prints index item in quotes > > ... > \input book.ind %prints index For that last line I substituted: ------------------------------------------ \title{Index} \writetolist[chapter]{}{Index} \tfx \startcolumns[n=2] \typefile{book.ind} \stopcolumns ---------------------------------------- And the makeindex command I use is makeindex -s alpha.ist book.idx The alpha.ist file adjusts the default output of makeindex. The file I use is here: http://wexfordpress.com/tex/alpha.ist Now I have a satisfactory index. I changed all the + to ! in the \index cammands as mentioned before. But it is possible to modify makeindex still further with an addition to alpha.ist: -------------------------------- level + -------------------------------- -- 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 ___________________________________________________________________________________