4

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}
\begin{equation}
a=\frac{b}{c}
\end{equation}

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

\printindex

\end{document}

Every suggestion is welcome.

mp87
  • 825

1 Answers1

7

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.

egreg
  • 1,121,712
  • 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 00:06