TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a follow-up question to: How to make indexed words clickable in the text?

I'm having two problems with the code given by @Stephen.

  1. If I use the following code to redefine the \index command, the link to the entry in the Index, will not work with xindy

  2. My index entries with subentries (e.g. \index{foo!bar}) could not be used this way.

BTW, my document is in Persian which is an RTL language.

Here is the code which I'm having problem with it:



test \index{test}% problem 1
\index{foo!bar}% problem 2

share|improve this question
Most likely you need to use \LetLtxMacro, instead of \let. A detailed description of \LetLtxMacro can be found at this question at closed square root symbol. – Peter Grill Nov 10 '12 at 21:41
Please make a MWE with all the code necessary to show how this "doesn't work". – egreg Nov 10 '12 at 22:32
@egreg: I added a MWE to my post. – Vahid Damanafshan Nov 11 '12 at 6:03
The problem is that \subsubitem is written inside the argument of \hypertarget. Probably Xindy gets confused by the two ! it finds in the same entry. – egreg Nov 11 '12 at 10:31
@egreg: Isn't there a solution to this problem? – Vahid Damanafshan Nov 11 '12 at 18:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.