Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

makeidx package will list the words and references to the pages they appeared. Is it possible to mix the page numbers with \hyperref package to make the page numbers clickable with \hyperlink{page.x}{indexed term}? Going to the page provided in the index upon clicking on page number.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

That is the default behavior as long as you load the hyperref package last:

enter image description here

\documentclass{article}
\usepackage{lipsum}
\usepackage{imakeidx}% For index generation
\usepackage{hyperref}% Load last (AFTER imakeidx)

\makeindex

\begin{document}
  \lipsum[1]
  \index{foo}
  \lipsum[2]
  \printindex
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.