ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Term "C++" in index
@ 2007-07-05 14:49 Duncan Hothersall
  2007-07-05 16:45 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Hothersall @ 2007-07-05 14:49 UTC (permalink / raw)
  To: ConTeXt List

A long long time ago, Hans said:
> At 01:55 PM 10/31/2002 +0100, Matthias Heidbrink wrote:/
> >Hi,
> >
> >possibly a trivial question, but can't find it anywhere:
> >
> >How do I get the term "C++" into an index? Unfortunately ConTeXT
> >interprets the "+" as a separator for indexed terms and I did not find a
> >way to escape it
> >that did not confuse the index mechanism./
>
> \index[&Cplusplus]{C++}
> \index[Cplusplus]{Cpp}
>
> So, the & as started signals texutil that that is the separator 
> instead of
> + while the plusplus makes sure that the sorting is ok
>
> Hans
The second part of this advice I assume is now just out of date, since 
it will simply produce a second index entry called Cpp. However, the 
first part *almost* works - it outputs an entry "C" with a subentry "+" 
(without the & you can't get a + out at all).

What is the up-to-date workaround for this issue to let me get a single 
entry in the index that just says "C++"?

Minimal test file is as follows:

\starttext
We are talking about \index[&Cplusplus]{C++}C++, the programming language.
\placeindex
\stoptext

Thanks!

Duncan
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-07-05 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05 14:49 Term "C++" in index Duncan Hothersall
2007-07-05 16:45 ` Hans Hagen

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