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
___________________________________________________________________________________

Reply via email to