From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34115 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Makeindex and Context Date: Wed, 4 Apr 2007 08:09:56 -0400 Organization: WexfordPress Message-ID: <200704040809.56941.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: sea.gmane.org 1175688754 26395 80.91.229.12 (4 Apr 2007 12:12:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 12:12:34 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 04 14:12:25 2007 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 1HZ4LX-0004lB-1R for gctc-ntg-context-518@m.gmane.org; Wed, 04 Apr 2007 14:12:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 662A01FBB9; Wed, 4 Apr 2007 14:12:14 +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 22995-04-5; Wed, 4 Apr 2007 14:12:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 887C020133; Wed, 4 Apr 2007 14:12:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7FEBF1FBB9 for ; Wed, 4 Apr 2007 14:12:06 +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 22995-04-4 for ; Wed, 4 Apr 2007 14:12:04 +0200 (CEST) Original-Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by ronja.ntg.nl (Postfix) with ESMTP id 5571C20133 for ; Wed, 4 Apr 2007 14:12:03 +0200 (CEST) Original-Received: from c-76-21-129-31.hsd1.md.comcast.net ([76.21.129.31]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070404121200.SNEK22297.mta11.adelphia.net@c-76-21-129-31.hsd1.md.comcast.net> for ; Wed, 4 Apr 2007 08:12:00 -0400 User-Agent: KMail/1.9.4 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:34115 Archived-At: I like the extended feature set of makeindex so I creatred my own little routine to use it with Context on a recent project. Here is the code: \newwrite\ind \immediate\openout\ind=book.idx \def\sidx#1{\write\ind{\\indexentry{#1}{\the\pageno}}} It works fine from the indexing point of view. But if the \sidx{} tag is embedded in a paragraph then some extra space is left where the tag existed in the paragraph. I had to move all such tags to either the beginning or the end of the paragraph. What did I fail to do? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com