Some mathematics texts honor an unspoken tradition by providing a few strange index entries. I'd like to have an index entry that refers to itself. Here's a (N)MWE to start with. Answers may use a fancier index package, of course.
\documentclass[10pt]{article}
\usepackage{makeidx}
\makeindex
\begin{document}
This paragraph references itself. The index entry should point here,
and to itself. \index{self-reference}
In this short document, the index on page 2 should read
self-reference, 1, 2
\printindex
\end{document}
delim_t ", \\thepage"
– touhami Oct 12 '15 at 15:29