給個例子吧:
\documentclass{article}
%在導言區加入:
\usepackage{makeidx}
\makeindex
\begin{document}
%正文中加入index:
This?is?my?key\index{key}.
This?is?my?second?palace\index{key!palace}?that?has?a?key.
%列出index:
\printindex
\end{document}
編譯流程:
latex?input.tex
makeindex?input.idx
latex?input.tex
上面的latex換成pdflatex也成。