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.
1 Answer
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:
\protect\href{....}