From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54120 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: where to place \index Date: Fri, 06 Nov 2009 11:35:20 +0100 Message-ID: <4AF3FBE8.4070802@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257503738 18718 80.91.229.12 (6 Nov 2009 10:35:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2009 10:35:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 06 11:35:32 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N6MAF-0008AC-Sg for gctc-ntg-context-518@m.gmane.org; Fri, 06 Nov 2009 11:35:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A8C6C9C44; Fri, 6 Nov 2009 11:33:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0SyZGT7MOeoB; Fri, 6 Nov 2009 11:33:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46121C9C1F; Fri, 6 Nov 2009 11:33:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7682BC9C1F for ; Fri, 6 Nov 2009 11:33:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lrwhBP96pljL for ; Fri, 6 Nov 2009 11:33:38 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 6D7D8C9BCF for ; Fri, 6 Nov 2009 11:33:38 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 1010-1713362 for ; Fri, 06 Nov 2009 11:35:13 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54120 Archived-At: Oliver Buerschaper wrote: > Hi there, > > Reading the wiki I saw that > > \index{keyword}keyword > > should be used rather than > > keyword\index{keyword}. > > How should I proceed for names? For example > > \defineregister[person][people] > > Albert \person{Einstein, Albert}Einstein > > vs. > > \index{Einstein, Albert}Albert Einstein > > What happens in either case? it depends on where you want the index to point to ... normally to the beginning of the entry, just think of \index{Einstein, Albert}Albert Ein-stein Albert Ein-stein\index{Einstein, Albert} in the second case the index points to 'stein' and if no Einstein is on that page the user might wonder where the index entry pointed to Ok, one could end up on Albert but as the user expects "Albert Einstein" that's ok Albert~Einstein\index{Einstein, Albert} might be an alternative Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________