ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Makeindex and Context
Date: Wed, 04 Apr 2007 22:29:07 +0200	[thread overview]
Message-ID: <46140A93.2020407@elvenkind.com> (raw)
In-Reply-To: <200704040809.56941.john@wexfordpress.com>

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

      reply	other threads:[~2007-04-04 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04 12:09 John R. Culleton
2007-04-04 20:29 ` Taco Hoekwater [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46140A93.2020407@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).