Index

This note introduces commands to add an index to your document:

Document layout:

% ...
\usepackage{makeidx}
\makeindex
%...
\begin{document}
%...
\printindex
%...
\end{document}

Creating entries:

Makeindex command line:

makeindex <file>.idx

See Compiling LaTeX Documents

Alphabetical headers

  1. Create index.ist with the following content:
  quote '+'
  headings_flag 1
  heading_prefix "{\\bf "
  heading_suffix "}\\nopagebreak%\n \\indexspace\\nopagebreak%"
  delim_0 "\\dotfill "
  delim_1 "\\dotfill "
  delim_2 "\\dotfill "
  delim_r "~--~"
  suffix_2p "\\,f."
  suffix_3p "\\,ff."
  1. Modify the makeindex command line:

makeindex -s index.ist &lt;file&gt;.idx

Using Fancy Page Headings

For some obscure reason the index page will not use fancy headers unless you include the following line into your index.ist:

preamble "\\begin{theindex}\n\\thispagestyle{fancy}\n"
Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.