Article View: comp.text
Article #3922Re: troff indexes
From: Kathy Vincent
Date: Thu, 06 Aug 1987 21:13
Date: Thu, 06 Aug 1987 21:13
47 lines
2456 bytes
2456 bytes
In article <MV5siey00Vs6c7E0Nt@andrew.cmu.edu> ao06+@andrew.cmu.edu.UUCP writes:
>
>Has anybody out there ever created an index with troff? Or had success using
>the ptx program?
I don't know anything about ptx, and I have not personally made
an index with troff, but people in my group do it all the time.
But. If you're looking for a method, one way is to create a macro
that will collect an indexing key or keys and the current page number.
At any given point in the text, say you want to create an index
entry for some information about - let's be original here -
indexing macros. You could have one macro that takes multiple keys
or use more than one macro call for each (using mm):
.P
Lots of interesting
text about indexing macros.
.Ix indexing \nP
.Ix macros \nP
.Ix "indexing macros" \nP
More text about other stuff.
The macro code involves reading the arguments to the macro and popping
the key and the page number into a diversion that can then be printed
out and used later to make the index. You may also be able to
dump directly into a file.
I don't know of a method off hand - a GOOD and USEFUL indexing
method - that can be done in that one step, though. You'll
end up having to do some sorting and arranging and reformatting
from that raw information, grouping items under major indexing
headings and so forth.
Forget permuted indexes. They are convenient only for the people
making the index. They are of limited or no usefulness to people
who really need to find information.
Kathy Vincent kathy@bakerst.UUCP
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Home: {ihnp4|mtune|ptsfa} _____
{hplabs|seismo}!kitty _____\__ !bakerst!kathy
{mcnc|duke}!ethos _____/
AT&T: ihnp4!wruxe!unix
{mtune|burl|ihnp4}!wrcola!kathy
Technical Details
Message-ID:
<834@bakerst.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!rocksanne!sunybcs!kitty!bakerst!kathyReferences:
<MV5siey00Vs6c7E0Nt@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!rocksanne!sunybcs!kitty!bakerst!kathy From: kathy@bakerst.UUCP (Kathy Vincent) Newsgroups: comp.text Subject: Re: troff indexes Message-ID: <834@bakerst.UUCP> Date: Thu, 6-Aug-87 17:13:34 EDT Article-I.D.: bakerst.834 Posted: Thu Aug 6 17:13:34 1987 Date-Received: Sat, 8-Aug-87 18:11:39 EDT References: <MV5siey00Vs6c7E0Nt@andrew.cmu.edu> Reply-To: kathy@bakerst.UUCP (Kathy Vincent) Distribution: world Organization: I haven't a clew ..., Winston-Salem, NC Lines: 47