From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75324 Path: news.gmane.org!not-for-mail From: Malte Stien Newsgroups: gmane.comp.tex.context Subject: Re: Formatting Indexed Words Within the Text Date: Sat, 24 Mar 2012 15:19:42 +1100 Message-ID: <2D2D1A98-68B9-4380-9B90-F862ADE4FBDA@stien.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332562801 5557 80.91.229.3 (24 Mar 2012 04:20:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2012 04:20:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 24 05:20:01 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SBISO-0004qN-MO for gctc-ntg-context-518@m.gmane.org; Sat, 24 Mar 2012 05:20:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 931C3101E8; Sat, 24 Mar 2012 05:19:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gxaWXALc3wnk; Sat, 24 Mar 2012 05:19:56 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F71C101DF; Sat, 24 Mar 2012 05:19:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0189101DF for ; Sat, 24 Mar 2012 05:19:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GjqMU8yfR9tY for ; Sat, 24 Mar 2012 05:19:52 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D549310194 for ; Sat, 24 Mar 2012 05:19:51 +0100 (CET) Original-Received: from homiemail-a98.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2O4JmLD002298 for ; Sat, 24 Mar 2012 05:19:49 +0100 Original-Received: from homiemail-a98.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTP id F42152C2060 for ; Fri, 23 Mar 2012 21:19:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=stien.de; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= stien.de; b=u/twhAnQYJ4dABeHYuNmlK3Og/Og8P9SZ5X7UUvEfXiHqCmi+znq G6b7v8fFH9Ro6ARl8UKu1bG+DWo/T1C0i4NJCUN0O4A9yUiAQ8qiMDI9kzY4Fait H78W7DRjq2T7fyynz1mf3B83tPBl3K+XvSmBnoYmGMM1AYn52BUFD1M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=stien.de; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=stien.de; bh=P3Tbsg3lM4f6jk7mCq3nA8uKDIA=; b=G7EyH3kMbUSp2a9WzjaSbWt+YfOC RbQ0Vj3s8s1Sgb8DqdYiT0Csbless52FzZKsqa3dJBA8/FxSIIMKrSIYBc9GN1FA UbZNHr8EXoqpvbumYHcfCgdDuwLoUNkj5CgCdfGP5Bt2R5OliO9ZJ9sljGhkAmol Lkeyjkg5YrR3fmY= Original-Received: from [192.168.0.5] (51.125.96.58.static.exetel.com.au [58.96.125.51]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: malte@stien.de) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTPSA id 7D4572C2059 for ; Fri, 23 Mar 2012 21:19:45 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0005 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.97.132.119; country=US; region=CA; city=Trabuco Canyon; postalcode=92679; latitude=33.6117; longitude=-117.5491; metrocode=803; areacode=949; http://maps.google.com/maps?q=33.6117,-117.5491&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGNgjNbw - fe0b14a4474e - 20120324 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:75324 Archived-At: Hi, I got a few responses for this. Thank you to all of you. I ended up using the code below. Works a treat. And yes, apologies. The square brackets were a typo; of course they should have been curly. Thank you again. Malte. On 24/03/2012, at 0:01, ntg-context-request@ntg.nl wrote: > One way is to use your own macro: > > \def\MyIndex#1{\index{#1}{\sc #1}} > \starttext > There are some \MyIndex{ducks} in the zoo. > \stoptext > > By the way, your \index[ducks] didn't work for me the way I thought you wanted; I changed the [] to {} and added the word to the text body. As far as I can tell, \index only adds entries to the index register and not to the text. ___________________________________________________________________________________ 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 ___________________________________________________________________________________