MakeIndex is a program for
making an index in a document generated with LATEX. The first step in
producing the index is to put the necessary \index
commands in
your document, as described in the next section. Here, I describe how
to generate the index after the \index
commands are in place.
Let's suppose that the root file of your document is myfile.tex. You must make the following changes to your document:
\documentstyle
command. (See page 21 of the
LATEX manual.)
\makeindex
command in the preamble (between the
\documentstyle
and \begin{document}
commands).
\printindex
command where you want the index to
appear—usually at the end, right before the \end{document}
command.
makeindex myfile.idxThis produces the file myfile.ind, which I will call the ind file. If MakeIndex generated no error messages, you can now rerun LATEX on your document and the index will appear. (You can remove the
\makeindex
command first so the idx file is not
regenerated.) If there were error messages, see
Section .
By reading the index, you may discover additional mistakes. These should be
corrected by changing the appropriate \index
commands in the
document and regenerating the ind file. If there are
problems that cannot be corrected in this way, you can always edit
the ind file directly. However, such editing is to be
avoided because it must be repeated every time you generate a new
version of the index.