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

  • 3
    use hyperref instead of the url package. \hypersetup is part of hyperref. – Sean Allred May 13 '15 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 '15 at 14:43
  • Turns out I had been including hyperref too, so moved the configuration there. Should I remove the include for url? – Tomáš Zato May 13 '15 at 14:46
  • 2
    That would be fine, yes :) hyperref loads url IIRC. At the very least, it provides the same functionality. – Sean Allred May 13 '15 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 '15 at 15:09
  • I'd love to know why pink is the default, it seems "the best" of all choices. –  Jan 16 '16 at 00:52

1 Answers1

1

Try to use this package:

\usepackage{hyperref}

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