Im new to latex, and have successfully created my first project, which is a book. I want to finish the book by creating an index at the end of the document. I have succeeded, but have encountered a small problem,
When the index is compiled, the text or word selected for the index is placed in the index and prints successfully, but removes the selected text or word from the document. I use MiKTeX version 2.8 and quite like it. The code I use is as follows.
Code: Select all
\documentclass[12pt, openany, a4paper,]{book}
\usepackage[dvips]{graphicx}
\usepackage{makeidx}
\makeindex
\begin{document}
\tableofcontents
\input{filename.tex}
\printindex
\end{document}