On Tue, 6 Jul 2010 20:46:09 -0400, Shiv Shankar Dayal
<shivshankar.da...@gmail.com> wrote:

> Hi,
> 
> I tried to put _ in index entry and am unable to do it. I tried
> following 1. \index{_shiv} 2. \index{\type{_shiv}} 3.
> \index{\textunderscore{} shiv}
_ is a special character for TeX. You can change this behaviour globally with
\nonknuthmode or you can escape the _ locally by using the backslash.

  \nonknuthmode
  \starttext
  \placeindex
  Hello\index{huhu}
  \stoptext

or

  \starttext
  \placeindex
  Hello\index{_huhu}
  \stoptext

both work for me.

Marco


___________________________________________________________________________________
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