From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34117 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Makeindex and Context Date: Wed, 04 Apr 2007 22:29:07 +0200 Message-ID: <46140A93.2020407@elvenkind.com> References: <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 1175718568 21235 80.91.229.12 (4 Apr 2007 20:29:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 20:29:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 04 22:29:23 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 1HZC6Y-0006e6-Vq for gctc-ntg-context-518@m.gmane.org; Wed, 04 Apr 2007 22:29:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE1DF202E0; Wed, 4 Apr 2007 22:29: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 26225-01; Wed, 4 Apr 2007 22:29:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8576D2009F; Wed, 4 Apr 2007 22:29:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 672AC2009F for ; Wed, 4 Apr 2007 22:29:09 +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 26220-01-2 for ; Wed, 4 Apr 2007 22:29:07 +0200 (CEST) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with ESMTP id 9AF7F20018 for ; Wed, 4 Apr 2007 22:29:07 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:53869 helo=[10.10.0.6]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1HZC6N-0006q8-Cl for ntg-context@ntg.nl; Wed, 04 Apr 2007 20:29:07 +0000 User-Agent: Thunderbird 1.5.0.9 (X11/20070105) In-Reply-To: <200704040809.56941.john@wexfordpress.com> 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:34117 Archived-At: John R. Culleton wrote: > 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? The one thing missing from your example is the thing that is causing the spaces: the actual input file. The definitions above look fine, and are certainly not the cause. Cheers, Taco