# Creating hyperlinks with imakeidx using cleveref

I'm using imakeidx to create the index of my thesis and I would like to have hyperlinks to the pages that are hereby cited. Unlike this discussion, I'm using the cleveref package.

Here is the MWE that reproduces the problem:

\documentclass{scrbook}
\usepackage{classicthesis}
\usepackage{imakeidx}
\makeindex
\usepackage{cleveref}
\begin{document}

\chapter{First chapter}
This is the first definition:\index{First definition}
$$a=\frac{b}{c}$$

\chapter{Second chapter}
This is the second definition\index{second definition}
$$b=a\times c$$

\printindex

\end{document}

Every suggestion is welcome.

The imakeidx package must be loaded before hyperref.

\documentclass{scrbook}
\usepackage{imakeidx}
\usepackage{classicthesis}
\usepackage{cleveref}

\makeindex

\begin{document}

Since hyperref is loaded by classicthesis this is the correct order.

• Oops, I didn't remember that classicthesis loads also hyperref! Now it works perfectly. Thank you Enrico, your package is really nice. – mp87 Apr 15 '12 at 0:06