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, [email protected] 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 : [email protected] / 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 ___________________________________________________________________________________
