[comp.text] Index generation in *roff

arnold@mango.synopsys.com (Arnold de Leon) (12/20/90)

Does anyone have index generators for use in *roff documents?

A possible model would something that would take
"index words" that are marked in document and generate the
index using those words/phrases.

But I would appreciate anything as a starting point.

Thanks.



-- 
Arnold de Leon  			arnold@synopsys.com
Synopsys Inc.				(415) 962-5051
1098 Alta Ave.
Mt. View, CA 94043

rstevens@noao.edu (Rich Stevens) (12/22/90)

Take a look at the paper "Tools for Printing Indexes" by Bentley and
Kernighan in _Electronic Publishing_, Vol. 1, No. 1, April 1988,
pp. 3-17.  As the last line in the summary says "An appendix contains
a complete listing of the programs, which total about 200 lines [of nawk]."

More important, the appendix says that you can get the programs in
machine-readable form by sending the mail message "send indexing.tools"
to either netlib@research.att.com or netlib@anl-mcs.arpa (I see from
the DNS that the latter is now peace.mcs.anl.gov.)

I used the programs for my book and they work great.  But, the hardest
part is figuring out the words you want to index, and inserting the
troff commands to create the raw data for these programs.

	Rich Stevens

harrison@necssd.NEC.COM (Mark Harrison) (12/27/90)

In article <611@synopsys.COM>,arnold@mango.synopsys.com (Arnold de Leon) writes:

> Does anyone have index generators for use in *roff documents?

This has worked well for us:

1. Use the macros in Narain Gehani's "Document Formatting and Typesetting
   on the Unix System", Silicon Press, ISBN 0-9615336-2-5.

2. Massage this output with the programs in Section 5.3 (Making Indexes) of
   "The AWK Programming Language", by Aho, Kernighan, and Weinberger,
   Addison-Wesley, ISBN 0-201-07981-X.

Hope this helps,
Mark.
-- 
Mark Harrison             harrison@necssd.NEC.COM
(214)518-5050             {necntc, cs.utexas.edu}!necssd!harrison
standard disclaimers apply...