From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75311 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Formatting Indexed Words Within the Text Date: Fri, 23 Mar 2012 11:30:12 +0000 Message-ID: <714DE07B-4260-48DF-AB96-6D8F1DB27EF5@emory.edu> References: <67926749-1A4E-4701-BCDC-86C2979590C0@stien.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332502239 30304 80.91.229.3 (23 Mar 2012 11:30:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 11:30:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 23 12:30:32 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 1SB2hS-0007hq-Qr for gctc-ntg-context-518@m.gmane.org; Fri, 23 Mar 2012 12:30:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D22D210194; Fri, 23 Mar 2012 12:30:29 +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 RqNoZ77PrnBh; Fri, 23 Mar 2012 12:30:24 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D068101E3; Fri, 23 Mar 2012 12:30:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03B51101E3 for ; Fri, 23 Mar 2012 12:30:24 +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 gfo4IvS4AMzV for ; Fri, 23 Mar 2012 12:30:21 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id EB6C910194 for ; Fri, 23 Mar 2012 12:30:21 +0100 (CET) Original-Received: from ws-mr2.cc.emory.edu (ws-mr2.cc.emory.edu [170.140.50.232]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2NBUJ1M003740 for ; Fri, 23 Mar 2012 12:30:20 +0100 Original-Received: from e14edge2n.Eu.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ws-mr2.cc.emory.edu (8.13.8/8.13.1) with ESMTP id q2NBUCmA016559 for ; Fri, 23 Mar 2012 07:30:12 -0400 Original-Received: from E14CH2W.Enterprise.emory.net (10.240.10.114) by e14edge2n.Eu.Emory.Edu (170.140.53.162) with Microsoft SMTP Server (TLS) id 14.2.247.3; Fri, 23 Mar 2012 07:30:11 -0400 Original-Received: from E14MBX23N.Enterprise.emory.net ([fe80::b473:ef05:b37f:5ccd]) by e14ch2w.Enterprise.emory.net ([::1]) with mapi id 14.02.0247.003; Fri, 23 Mar 2012 07:30:11 -0400 Thread-Topic: [NTG-context] Formatting Indexed Words Within the Text Thread-Index: AQHNCOPB3J8OOL22nU21PO4UwlR+3JZ4AeIA In-Reply-To: <67926749-1A4E-4701-BCDC-86C2979590C0@stien.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: <945CCB6B15B488498804B67162AB4ACB@Enterprise.emory.net> X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q2NBUCmA016559 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.01, required 8, autolearn=disabled, T_RP_MATCHES_RCVD -0.01) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.50.232; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QGMXukRo - 092aad40fee8 - 20120323 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:75311 Archived-At: On Mar 23, 2012, at 6:57 AM, Malte Stien wrote: > Is it possible to format indexed words in a particular style within the text more or less automatically. For example, if I write > > There are some \index[ducks] in the zoo. > > ...I would like the term "ducks" to appear in small-capitals to indicate the that term can be found in the index. Ideally, I'd like to do that without explicit manual formatting. Is that possible? > > Thank you, > Malte. 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. ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___________________________________________________________________________________ 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 ___________________________________________________________________________________