Re: [NTG-context] Term C++ in index
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 ___
Re: [NTG-context] Term C++ in index
Duncan Hothersall wrote: 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 \unexpanded\def\CPP{c++} \index[Cplusplus]{\CPP} Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___