0

I'm making proof with \href (hyperref package) and enote (enotez package)

 \documentclass{article}
  \usepackage[backref]{enotez}     
 \usepackage{hyperref}
 \let\footnote=\endnote

\begin{document}
     Sample text.\endnote {\href{https://www.ibm.com}} \printendnotes           
\end{document}

But, this code, Does not link the .pdf to the webstite

Why?

TIA

Renato

4

\href has two argument. Use either \url or add the second argument. Be aware that special chars in the url (%, _ etc) can be problematic if the command is used in the argument of another (but I didn't test it).

\documentclass{article} 
\usepackage[backref]{enotez}
\usepackage{hyperref} \let\footnote=\endnote

\begin{document} Sample text.\endnote {\url{https://tex.stackexchange.com/questions/472537/enotez-href-problem}} 

\endnote{\href{https://tex.stackexchange.com/questions/472537/enotez-href-problem}{some text}}
\printendnotes
 \end{document} 
  • not even this. This, link Just to the note not to website – RenatoP Jan 30 at 11:11
  • Works fine for me. How are you compiling? Which pdf viewer do you use? – Ulrike Fischer Jan 30 at 11:14
  • compiler: pdflatex viewer : sumatra pdf – RenatoP Jan 30 at 11:22
  • ok, I've uderstand the prob: I was thinking to clicck the number over the sentence, instead this works and I need to click the address. ok. thatì's work! – RenatoP Jan 30 at 11:35

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.