\documentclass[12pt]{article}   \usepackage{makeidx}
%\documentstyle[makeidx]{article}
 \makeindex
\begin{document}
 Text with an index entry concerning elephants\index{elephant}.
 \printindex
\end{document}
