I am using MikTeX Version 2.9 in Windows. Currently I am using makeidx.sty
and the makeindex.exe
program to crate the index entries from the TeX application files by using the tag \index
. But is it possible to update and print the page numbers of index entries without running the makeindex
program?
Now the auto updation is fixed by using the package "imakeidx.sty
" as suggested by TeXnician. Please suggest that how can I add the tag \break, \pagebreak
to the particular index entry?
My MWE is follows:
\documentclass{book}
\usepackage[makeindex]{imakeidx}
\makeindex
\begin{document}
This is a sentence indexing the command
\index{Breaking word}
with the environment\index{abstract}
and the ordinary word `document'\index{Test document}.
\printindex
\end{document}
Here, I need to break the two words "Breaking word", i.e., output should generate as \item Breaking\break word
Please suggest...
imakeidx
and compile with-shell-escape
, it will run makeindex automatically (idk whether makeidx does the same to).-shell-escape
is not needed