2

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...

6
  • 3
    use hyperref instead of the url package. \hypersetup is part of hyperref. May 13, 2015 at 14:43
  • The \hypersetup is from the package hyperref. Just replace url by hyperref and put the whole thing at the end of your preamble. If you encounter other problems with my approach, let us know, which.
    – LaRiFaRi
    May 13, 2015 at 14:43
  • Turns out I had been including hyperref too, so moved the configuration there. Should I remove the include for url? May 13, 2015 at 14:46
  • 2
    That would be fine, yes :) hyperref loads url IIRC. At the very least, it provides the same functionality. May 13, 2015 at 14:49
  • 2
    It's still a good idea to load the url package separately (and, if you do so, before you load hyperref) if you need to use options such as hyphens (useful if you want to allow line breaks at hyphen characters).
    – Mico
    May 13, 2015 at 15:09

1 Answer 1

1

Try to use this package:

\usepackage{hyperref}

Also, you can check out a detailed example here https://www.overleaf.com/project/5fe24ef7f829ed77be10f39f

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .