ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Malte Stien <malte@stien.de>
To: ntg-context@ntg.nl
Subject: Re: Formatting Indexed Words Within the Text
Date: Sat, 24 Mar 2012 15:19:42 +1100	[thread overview]
Message-ID: <2D2D1A98-68B9-4380-9B90-F862ADE4FBDA@stien.de> (raw)
In-Reply-To: <mailman.204.1332507708.3819.ntg-context@ntg.nl>

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
___________________________________________________________________________________


       reply	other threads:[~2012-03-24  4:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.204.1332507708.3819.ntg-context@ntg.nl>
2012-03-24  4:19 ` Malte Stien [this message]
2012-03-23 10:57 Malte Stien
2012-03-23 11:30 ` Rogers, Michael K
2012-03-23 13:04 ` Alan BRASLAU
2012-03-23 18:42 ` Hans Hagen
2012-03-24 10:20   ` Alan Braslau
2012-03-24 10:28     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2D2D1A98-68B9-4380-9B90-F862ADE4FBDA@stien.de \
    --to=malte@stien.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).