2

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.

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

1 Answer 1

2

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

You must log in to answer this question.

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