MakeIndex, Nomenclature, Glossaries and Acronymshyperref | Hyperlink inside Index Entry

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
safwatonline
Posts: 13
Joined: Tue Jun 29, 2010 6:46 pm

hyperref | Hyperlink inside Index Entry

Post by safwatonline »

Hello,
I am using the following command to set an entry inside the index referring to another entry in the index with \index{EntryX|see{EntryY}}.

But how to make EntryY a hypperlink to its location in the index?
Is that doable?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: hyperref | Hyperlink inside Index Entry

Post by kaiserkarl13 »

Does the "hyperindex" option to the hyperref package do what you want (or close to it)?
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

hyperref | Hyperlink inside Index Entry

Post by nlct »

The "hyperindex" option doesn't modify \see. You not only need the argument of \see to be a link, you also need to define the target point. This can be done using \hypertarget and \hyperlink like this:

Code: Select all

\index{Entry Y@\hypertarget{Entry Y}{Entry Y}}
\index{Entry X|see{\hyperlink{Entry Y}{Entry Y}}}
This is okay if you only have a few cross-referenced terms. If you have a lot you'll need to adopt a different strategy.

Regards
Nicola Talbot
Post Reply