I am using \newcommand{\Index}[1]{#1\index{#1}} to add my index entries. However, I am not sure how I can have something like \Index{\href{index entry}{http://www.blahblah.com}} and \Index{\href{index entry2}{http://www.blahblah2.com}} etc.

  • \protect\href{....} – user31729 Oct 30 '15 at 11:24
  • @Christian Hupfer. Thank you. It works. How can I mark the answer accepted? – Reza Oct 30 '15 at 11:39
  • Reza: I posted a full answer ;-) – user31729 Oct 30 '15 at 11:41

It's necessary to use \protect\href{} and most of the hyperref macros in conjunction with \index, e.g. like in this answer of mine here:

Linking indexed term to index entry

| improve this answer | |

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.