16

I am using Lyx and i would like to change the color of hyperlinks on my bibliography. The default color is pink (at least on report layout , which i am using) Is it possible to change it, to blue ?

Thanks in advance :-)

ALdaperan
  • 1,235

1 Answers1

12

According to the manual of hyperlink (p14), you should write something like this in your preamble:

\hypersetup{urlcolor=blue}
  • 10
    One can add the urlcolor=blue instruction, as well as others controlling hyper-links, in Document > Settings > PDF Properties under the Additional options field. For example, a custom set of instructions may be the following: linkcolor=magenta, urlcolor=marineblue, citecolor=blue, pdfstartview={FitH}, hyperfootnotes=false, unicode=true – Nikos Alexandris Apr 10 '13 at 19:51
  • Undefined control sequence \hypersetup while using \usepackage{url}. Why? – Tomáš Zato May 13 '15 at 14:30
  • @NikosAlexandris For some reason, this doesn't work for me. The color is still red. What am I doing wrong? – bobsacameno May 26 '17 at 07:37
  • @roi.holtzman What is your setup? OS and LyX version? hyperref installed? Use Hyperref Support enabled? Code only in the Additional Options field? Any conflicting entries in the LaTeX Preamble? – Nikos Alexandris May 26 '17 at 09:55
  • @NikosAlexandris LyX Version 2.2.2, Osx El Capitan 10.11.6. I don't know if hyperref is installed. I think it is installed because the links are working and are painted red. In the preamble I have \usepackage{url} \hypersetup{urlcolor=blue} and the code I use in the 'additional options' field is urlcolor=blue. – bobsacameno May 27 '17 at 11:51
  • 2
    @NikosAlexandris great suggestion to add hypersetup under Document > Settings > PDF Properties > Additional options. Some of my documents returned a Latex error "undefined color 'brown'". To fix the error I added \usepackage{xcolor} to the Latex Preample. – Paul Rougieux Mar 01 '18 at 10:50