I found a nice solution to edit the look of hyperlinks, but I have another problem:
\documentclass{article}
\usepackage{hyperref}
\newcommand{\link}[1]{\href{#1}{#1}}
\begin{document}
% error: Illegal parameter number in definition of \Hy@tempa. ...tes/guides/collections/designfaq.html#a14}
\link{https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html#a14}
% \href{https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html#a14}{Test}
\end{document}
Why does \link{...} not work? Exact the same url does work with \href{...}{...}.
Thank you for your help!!
\urlfor this – Apr 25 '19 at 13:59#in the URL by\#it works. – Apr 25 '19 at 14:03