I am creating my index using makeindex. Using hyperref, the page numbers within the index are correctly linked to the corresponding page. However, I also would like the index title (i.e. the keyword) to link to the corresponding page. I was not able to find a corresponding option in the imakeidx documentation.
Is there any way to achieve this?
Example:
\documentclass{book}
\usepackage{imakeidx}
\usepackage{hyperref}
\makeindex
\begin{document}
\section{First section}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam rutrum aliquet elit in pellentesque. Proin nulla eros, consequat nec convallis vel, vulputate vitae purus\index{purus}. Pellentesque consequat euismod sapien, ac porttitor diam laoreet id. Pellentesque habitant morbi tristique senectus\index{senectus} et netus et malesuada fames ac turpis egestas. Sed vehicula magna orci, nec congue sem congue ac. Sed fringilla aliquam interdum. Nullam quis commodo massa.
\printindex
\end{document}
This prints an index as follows: 
However, I would also like to link the keywords "purus" and "senectus".
\documentclass{...}and ending with\end{document}. – Jan 27 '15 at 07:51hyperrefsupports. – egreg Jan 27 '15 at 07:55