12

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?

2
  • 2
    I would suggest that you add \usepackage{hyperref} after (or before?) \makeindex.
    – pluton
    Jun 8, 2014 at 4:41
  • @ChristianHupfer It worked!
    – hola
    Jun 8, 2014 at 4:46

1 Answer 1

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}
2
  • 1
    It used to work for me some time ago, but now (texlive 2019) it does not. Any ideas? Oct 6, 2019 at 7:47
  • 2
    It works with makeidx, so I do without imakeidx. Oct 6, 2019 at 9:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .