I'm finishing up my Master's thesis and need to auto-index all similar terms after identifying the first one. ex:
\documentclass{article}
\usepackage{makeidx}
\makeindex
\begin{document}
%%%page1
\section{blah blah}
I'm **finishing** \index{finishing} up my thesis.
%.....
%....
%%% page2
Before **finishing** my thesis..
\printindex
\end{document}
I want to include automatically the term finishing on page 2 (or other pages) in my index. Something like that:
Index
finishing, 1, 2.
Is this possible?
**...**then you could do this withsed -i .bak 's/\*\*\([a-zA-Z]*\)\*\*/**\1** \\index{\1}/g' filename.tex. – Jul 31 '14 at 06:42