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. Another remark: In my view "texutil --purge" should also delete the ...tuo file because otherwise ConTeXt does not recover from a defective index entry. Ciao, Matthias -- Matthias Heidbrink E-Mail: Bundesratufer 12 mh@cs.tu-berlin.de 10555 Berlin, Germany Tel. +49-30-8536361 Mobil +49-179-3981150
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 ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Thursday 31 October 2002 07:55 am, 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.
Another remark: In my view "texutil --purge" should also delete the ...tuo file because otherwise ConTeXt does not recover from a defective index entry.
Ciao, Matthias
The Context register facility which is used for indexes is not the ultimate tool for building an index. I use the index.tex macro package from the Texsis suite and as an intermediary program I use either makeindex (the simplest course) or Xindy (for maximum flexibility.) Using the macro packages mentioned the command for making an index entry is \index{sortkey@indexterm!subsortkey!subindexterm!subsubsortkey@subsubindexterm} or in the simplest case \index{indexterm} The plus sign is not a special character using index.tex and makeindex. So \index{C++} should work. The index proper is printed with the command \input \jobname.ind The cycle is texsis % to process the \index commands & create \jobname.idx makeindex %to change jobname.idx to jobname.ind texsis %to import and typeset the finished index. You will need to read both the makeindex documentation as well as page 43 of the TeXsis manual. I have a partally-written tutorial on makeindex which I can send on request. -- John Culleton Able Indexers and Typesetters, Rowse Reviews, Culleton Editorial Services http://wexfordpress.com
participants (3)
-
Hans Hagen
-
John Culleton
-
Matthias Heidbrink