3

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?

  • 1
    I would suggest that you add \usepackage{hyperref} after (or before?) \makeindex. – pluton Jun 8 '14 at 4:41
  • @ChristianHupfer It worked! – pushpen.paul Jun 8 '14 at 4:46
4

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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