ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* underscore in index entry
@ 2010-07-07  0:46 Shiv Shankar Dayal
  2010-07-07  4:57 ` Marco
  0 siblings, 1 reply; 2+ messages in thread
From: Shiv Shankar Dayal @ 2010-07-07  0:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 206 bytes --]

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}

Please help.

-- 
Best regards,
Shiv Shankar Dayal

[-- Attachment #1.2: Type: text/html, Size: 294 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: underscore in index entry
  2010-07-07  0:46 underscore in index entry Shiv Shankar Dayal
@ 2010-07-07  4:57 ` Marco
  0 siblings, 0 replies; 2+ messages in thread
From: Marco @ 2010-07-07  4:57 UTC (permalink / raw)
  To: ntg-context

On Tue, 6 Jul 2010 20:46:09 -0400, Shiv Shankar Dayal
<shivshankar.dayal@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-07  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-07  0:46 underscore in index entry Shiv Shankar Dayal
2010-07-07  4:57 ` Marco

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).