Name
masterindex — indexing program for single and multivolume indexing.
Synopsis
masterindex [-master [volume]] [-page] [-screen] [filename..]
Description
masterindex generates a formatted index based on structured index entries output by troff. Unless you redirect output, it comes to the screen.
Options
-m
or -master
indicates that
you are compiling a multivolume index. The index entries for each
volume should be in a single file and the filenames should be listed
in sequence. If the first file is not the first volume, then specify
the volume number as a separate argument. The volume number is
converted to a roman numeral and prepended to all the page numbers
of entries in that file.
-p
or -page
produces a
listing of index entries for each page number. It can be used to
proof the entries against hardcopy.
-s
or -screen
specifies that
the unformatted index will be viewed on the “screen”. The default is
to prepare output that contains troff macros for formatting.
Files
/work/bin/masterindex |
/work/bin/page.idx |
/work/bin/pagenums.idx |
/work/bin/combine.idx |
/work/bin/format.idx |
/work/bin/rotate.idx |
/work/bin/romanum |
/work/macros/current/indexmacs |
See Also
Note that these programs require “nawk” (new awk): nawk (1), and sed (1V).
Bugs
The new index program is modular, invoking a series of smaller programs. This should allow me to connect different modules to implement new features as well as isolate and fix problems more easily. Index entries should not contain any troff font changes. The program does not ...
Get sed & awk, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.