This question discusses configuring link color in Lyx, however the accepted answer (or the question) doesn't address or solve my problem.
If I use this setting, as suggested:
% Enable links
\usepackage{url}
% But I hate pink!
\hypersetup{urlcolor=blue} % Undefined control sequence \hypersetup
So how does url
package handle this? The documentation (googled, may be outdated) doesn't even mention word color...
hyperref
instead of theurl
package.\hypersetup
is part ofhyperref
.\hypersetup
is from the packagehyperref
. Just replaceurl
byhyperref
and put the whole thing at the end of your preamble. If you encounter other problems with my approach, let us know, which.hyperref
too, so moved the configuration there. Should I remove the include forurl
?hyperref
loadsurl
IIRC. At the very least, it provides the same functionality.url
package separately (and, if you do so, before you loadhyperref
) if you need to use options such ashyphens
(useful if you want to allow line breaks at hyphen characters).