I'm currently using the makeidx package in conjunction with the \hyperref package to create my index. It's working perfectly fine so far, but only the page number next to the index term is clickable.
Is there any way I can make the entire index entry clickable?
My file looks like this:
\documentclass{report}
\usepackage{makeidx}
\usepackage{hyperref}
\makeindex
\begin{document}
This is some text.\index{sample index}
\printindex
\end{document}
The index looks like this:
I want the "sample index" text to be clickable aswell (not just the 1).


sample indexappears on two different pages? i.sstatic.net/wiykhs9Y.pngsample indexonly appears once in the entire document? do I need to use something else besidesmakeidx? thesample indextext could also just link to the first occurence.