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.

I use imakeidx package to generate index in my document. I'd like to add hyperlinks into my Index, but it seems to me that hyperref and imakeidx do not work together. For example, this code doesn't create linkable index:


\documentclass[11pt]{book}
\usepackage[pdftex]{color}

\usepackage{hyperref} \hypersetup{ colorlinks, citecolor=green, filecolor=green, linkcolor=blue, urlcolor=green } \usepackage[makeindex]{imakeidx} \makeindex \begin{document} Text\index{text} \printindex \end{document}

How to fix this problem? Thanks.

share|improve this question
    
Welcome to TeX.sx! –  Martin Scharrer Jun 30 '11 at 21:14

1 Answer 1

up vote 5 down vote accepted

Load imakeidx before hyperref. Generally, hyperref should be loaded last, though there are some exceptions (see Which packages should be loaded after hyperref instead of before? ).

share|improve this answer
    
Thanks. It works! –  Physicsworks Jun 30 '11 at 21:19

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.