[Tex/LaTex] Index not created in pdf output, even though idx file is present

indexing

I have a document that has \usepackage{makeidx} and \makeindex in the preamble and \printindex inside the document body. An .idx file is created when I compile, no errors are signalled, still there is no index listing in the PDF document that is produced. There used to be one until all my files were deleted except the .tex file, after that I could not get the index to appear in my output.
How can one troubleshoot this thing? I have changed all the "%bm" with "%tm" wherever I could find it in the build profiles (Tools -> Options -> Clean), as Thorsten Donig suggested on this website (in an answer to another posting regarding problems with the index creation). It did not solve my problem.
I am using the TeXnicCenter editor on Windows XP, with the MiKTeX 2.9 distribution.

Best Answer

During a compile of your file with LaTeX with the \makeindex command present, an .idx file is produced. However, \printindex requires a processed version of .idx, or a .ind file - the processed version being one that is formatted according to a hierarchy and sorted alphabetically. For this, you require an intermediate step:

  1. latex or pdflatex your myfile.tex (this creates myfile.idx)
  2. makeindex myfile (this processes myfile.idx into myfile.ind)
  3. latex or pdflatex your myfile.tex again
Related Question