walter@hpsad.HP.COM (Walter Coole) (03/16/90)
Is there an index generating program|macro for TeX? Ie. something that will take a TeX file and a list of words to index (or a list of words not to index), and produce TeX (or text) listing the words and the corresponding page numbers. I understand that makeindex will generate an index from TeX having constructs like "keyword \index{keyword}", but I'd like to figure out a way to avoid typing all that. It seems feasible to do with a few awk and seds, but surely someone's already done it. Thanks.
dhosek@jarthur.Claremont.EDU (---) (03/16/90)
In article <13590004@hpsad.HP.COM> walter@hpsad.HP.COM (Walter Coole) writes: >Is there an index generating program|macro for TeX? Ie. something >that will take a TeX file and a list of words to index (or a list of words not >to index), and produce TeX (or text) listing the words and the corresponding >page numbers. I understand that makeindex will generate an index from TeX >having constructs like "keyword \index{keyword}", but I'd like to figure out >a way to avoid typing all that. It seems feasible to do with a few awk and >seds, but surely someone's already done it. Thanks. Read the MakeIndex documentation before you make any judgements against it; the syntax is about as compact as it can reasonably be expected to be and MakeIndex is available on most systems, which cannot be said for other Indexing programs. If you want to check out "the competition", the following index programs are available from ymir.claremont.edu [anonymous.tex.utilities.idxtex] An Index and Glossary utility for VMS. Written up in TUGboat 8#2. [anonymous.tex.utilities.indexor] A utility for inserting indexing commands for MakeIndex into LaTeX files. [personally, I find it easier to do by hand] [anonymous.tex.utilities.makeindex] The classic program by Pehong Chen. There may be plain TeX macros to support it, but I don't know for sure. This is Officially a part of LaTeX, btw. [anonymous.tex.utilities.texindex] VMS Pascal indexing utility. [anonymous.tex.utilities.texix] The TeXT1 (now public domain(!)) indexing utility. Currently works *only* on CMS and MacIntosh. There are doubtless others available, but I don't have 'em. -dh -- Important note: The Anti-Social Committee will not be meeting this week. UUCP: uunet!jarthur!dhosek Internet: dhosek@hmcvax.claremont.edu
grunwald@foobar.colorado.edu (Dirk Grunwald) (03/17/90)
and if you don't like type ``keyword\index{keyword}'', you can always \def\Index#1{#1\index{#1}} and then simpley say \Index{keyword}.