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

  • 2
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.