From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2918 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Something changed with \index command Date: Sun, 08 Oct 2000 00:07:57 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001008000757.008cf6a0@pop.wxs.nl> References: <39DE2600.3FE45A0F@pobox.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393693 12855 80.91.224.250 (23 Oct 2002 17:21:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:21:33 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Berend de Boer In-Reply-To: <39DE2600.3FE45A0F@pobox.com> Xref: main.gmane.org gmane.comp.tex.context:2918 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2918 At 09:20 PM 10/6/00 +0200, Berend de Boer wrote: >Hello All, > >For some time I've noticed that the behaviour of the \index command >seems to have changed (perhaps I'm mistaken). I checked an old archive and nothing seems to be changed. This is rather old code btw. >Things as: > > my hello\index{hello} world program. > >do not work as the space after \index is eaten. I now need to write: > > my hello\index{hello}{} world program. > >Is this a bug or am I simply mistaken that previous behaviour was >different? The \index command has always eaten up spaces and pars. This means that in \section{Did you know that Berend} \index{de Boer} is a clever programmer. the \index write node will not interfere and the index indeed is attached to the right location. Also think of: bla \index{well} theindexbelongstothisword where the long work ends up on the next page. So: abc \index{def} ghi == abc \index{def}ghi with the following alternative: \def\complexdoregister[#1]#2% just an example, this code will not be used {\doprocesspageregister[#1]{#2}% \ifvmode\nobreak\expandafter\GotoPar\fi} the space is obeyed but I prefer the method where the index *precedes* the word since it's more secure. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------