home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
useful
/
dist
/
text
/
tex
/
pastex
/
man
/
makeindex.hlp
< prev
next >
Wrap
Text File
|
1991-10-01
|
34KB
|
1,057 lines
MAKEINDEX(1L) MISC. REFERENCE MANUAL PAGES MAKEINDEX(1L)
NAME
makeindex - a general purpose, formatter-independent index
processor
SYNOPSIS
makeindex [-c] [-g] [-i] [-l] [-o ind] [-p num] [-q] [-r]
[-s sfile] [-t log] [idx0 idx1 idx2...]
DESCRIPTION
The program makeindex is a general purpose hierarchical
index generator; it accepts one or more input files (often
produced by a text formatter such as TeX (tex(1L)) or
troff(1), sorts the entries, and produces an output file
which can be formatted. The index can have up to three lev-
els (0, 1, and 2) of subitem nesting. The way in which
words are flagged for indexing within the main document is
specific to the formatter used; makeindex does not automate
the process of selecting these words. As the output index
is hierarchical, makeindex can be considered complimentary
to the awk(1)-based make.index(1L) system of Bentley and
Kernighan, which is specific to troff(1), generates non-
hierarchical indices, and employs a much simpler syntax for
indicating index entries. For illustration of use with
troff and TeX, see the section EXAMPLES below.
The formats of the input and output files are specified in a
style file; by default, input is assumed to be a .idx file,
as generated by LaTeX.
Unless specified explicitly, the base name of the first
input file (idx0) is used to determine the names of other
files. For each input file name specified, a file of that
name is sought. If this file is not found and the file name
has no extension, the extension .idx is appended. If no
file with this name is found, makeindex aborts.
For important notes on how to select index keywords, see the
document by Lamport cited below. As an issue separate from
selecting index keywords, a systematic mechanism for placing
index terms in a document is suggested in Index Preparation
and Processing, a paper cited below.
OPTIONS
-c Compress intermediate blanks (ignoring leading and
trailing blanks and tabs). By default, blanks in
the index key are retained.
-g Employ German word ordering in the index, in
accord with rules set forth in DIN 5007. By
default, makeindex employs a word ordering in
which precedence is: symbols, numbers, uppercase
letters, lowercase letters. The sequence in
Sun Release 4.1 Last change: 01 October 1991 1
MAKEINDEX(1L) MISC. REFERENCE MANUAL PAGES MAKEINDEX(1L)
German word ordering is: symbols, lowercase
letters, uppercase letters, numbers. Addition-
ally, this option enables makeindex to recognize
the German TeX-commands {"a, "o, "u and "s} as
{ae, oe, ue and ss} during the sorting of the
entries. The quote character must be redefined in
a style file (for example, redefine quote as '+').
If the quote character is not redefined, makeindex
will produce an error message and abort.
-i Take input from stdin. When this option is speci-
fied and -o is not, output is written to stdout.
-l Letter ordering; by default, word ordering is used
(see the ORDERING section).
-o ind Employ ind as the output index file. By default,
the file name is created by appending the exten-
sion .ind to the base name of the first input file
(idx0).
-p num Set the starting page number of the output index
file to be num (useful when the index file is to
be formatted separately). The argument num may be
numerical or one of the following:
any The starting page is the last source
page number plus 1.
odd The starting page is the first odd page
following the last source page number.
even The starting page is the first even page
following the last source page number.
The last source page is obtained by searching
backward in the log file for the first instance of
a number included within paired square brackets
([...]). If a page number is missing or the log
file is not found, no attempt will be made to set
the starting page number. The source log file
name is determined by appending the extension .log
to the base name of the first input file (idx0).
-q Quiet mode; send no messages to stderr. By
default, progress and error messages are sent to
stderr as well as to the transcript file.
-r Disable implicit page range formation; page ranges
must be created by using explicit range operators;
see SPECIAL EFFECTS below. By default, three or
more successive pages are automatically
Sun Release 4.1 Last change: 01 October 1991 2
MAKEINDEX(1L) MISC. REFERENCE MANUAL PAGES MAKEINDEX(1L)
abbreviated as a range (e.g. 1-5).
-s sty Employ sty as the style file (no default). The
environment variable INDEXSTYLE defines the path
where the style file should be found.
-t log Employ log as the transcript file. By default,
the file name is created by appending the exten-
sion .ilg to the base name of the first input file
(idx0).
STYLE FILE
The style file informs makeindex about the format of the
.idx input files and the intended format of the final output
file; examples appear below. This file can reside anywhere
in the path defined by the environment variable INDEXSTYLE.
The style file contains a list of <specifier, attribute>
pairs. There are two types of specifiers: input and output.
Pairs do not have to appear in any particular order. A line
begun by `%' is a comment. In the following list of specif-
iers and arguments, <string> is an arbitrary string delim-
ited by double quotes ("..."), <char> is a single letter
embraced by single quotes ('...'), and <number> is a nonne-
gative integer. The maximum length of a <string> is 2048.
A literal backslash or quote must be escaped (by a
backslash). Anything not specified in the style file will
be assigned a default value, which is shown at the head of
the rightmost column.
INPUT STYLE SPECIFIERS
actual <char> '@'
Symbol indicating that the next
entry is to appear in the output
file.
arg_close <char> '}'
Closing delimiter for the index
entry argument.
arg_open <char> '{'
Opening delimiter for the index
entry argument.
encap <char> '|'
Symbol indicating that the rest of
the argument list is to be used as
the encapsulating command for the
page number.
escape <char> '\\'
Symbol which escapes the following
letter, unless its preceding letter
Sun Release 4.1 Last change: 01 October 1991 3
MAKEINDEX(1L) MISC. REFERENCE MANUAL PAGES MAKEINDEX(1L)