From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35327 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Term "C++" in index Date: Thu, 05 Jul 2007 18:45:59 +0200 Message-ID: <468D2047.1030501@wxs.nl> References: <468D04F0.3060501@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183653988 19209 80.91.229.12 (5 Jul 2007 16:46:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 16:46:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 05 18:46:25 2007 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I6UTG-0002Vt-68 for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jul 2007 18:46:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA4172023C; Thu, 5 Jul 2007 18:46:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07410-02; Thu, 5 Jul 2007 18:46:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74EFA2022F; Thu, 5 Jul 2007 18:46:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 862902022F for ; Thu, 5 Jul 2007 18:46:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06737-03 for ; Thu, 5 Jul 2007 18:46:03 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id E486D20201 for ; Thu, 5 Jul 2007 18:46:02 +0200 (CEST) Original-Received: from [10.100.1.116] (unverified [10.100.1.116]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 4198 for ; Thu, 05 Jul 2007 18:46:02 +0200 User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) In-Reply-To: <468D04F0.3060501@capdm.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35327 Archived-At: 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 ___________________________________________________________________________________