Is there a way i can have verbatim text inside a link?
\href{www.numpy.org}{\verb|numpy|}
does not work. I tried using cprotect
;
\cprotect\href{www.numpy.org}{\verb|numpy|}
, but then I end up with !TeX capacity exceeded, sorry [input stack size=5000].
Is there a simple way to do this?
Best Answer
You have to brace
\href{www.numpy.org}
:However, using
\cprotect
doesn't seem necessary here, as the example with\texttt
shows.Don't forget
http://
or the link won't work.