13

I have created a page on Index, where page numbers corresponding to index terms are shown. Now, I want to insert hyperlinks to the pages (so that navigation to those pages is easier).

Here's my MWE (it is taken from the internet):

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{imakeidx}
\makeindex

\begin{document}

\section{Introduction}
In this example several keywords\index{keywords} will be used 
which are important and deserve to appear in the Index\index{Index}.

Terms like generate\index{generate} and some\index{others} will 
also show up. 

\printindex

\end{document}

Can anybody help me?

hola
  • 4,026
  • 3
  • 35
  • 72

1 Answers1

10

Just use \usepackage{hyperref}, perhaps with some options and it will automatically add the hyperlinks to the indexed pages.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{imakeidx}
\usepackage{hyperref}%
\makeindex

\begin{document}

\section{Introduction}
In this example several keywords\index{keywords} will be used 
which are important and deserve to appear in the Index\index{Index}.

Terms like generate\index{generate} and some\index{others} will 
also show up. 

\printindex

\end{document}