4

Is it possible to have different colors for on screen and hardcopy display of hyperref links in the same file?

In my thesis, I like the functionality of linking reference numbers to the reference entry in the bibliography and I like having the pubmed links in the bibliography work. Having the links be blue or red helps indicate that they are clickable. But the links don't have any use in a printed copy. As is they come out a shade of grey when printed.

I know I can generate two different PDFs with different color settings, but I was wondering if there is some way to make the links come out solid black when printed but simultaneously display in color on the screen from the same PDF?

jkarmick
  • 103
  • 5

1 Answers1

1

Look at the thread "Colored hyperref links" on comp.text.tex.

Joseph Wright
  • 2,857
  • 22
  • 32
  • That works! Thanks! (I had to update my hyperref to a version that included the ocgcolorlinks option. evince still prints the links in color, but Acrobat works as desired) Thanks again! – jkarmick Dec 03 '09 at 16:39
  • the following works for me: `\usepackage[colorlinks=true,linkcolor=magenta,anchorcolor=magenta,citecolor=magenta,filecolor=magenta,menucolor=black,runcolor=magenta,urlcolor=magenta]{hyperref} \usepackage[ocgcolorlinks]{ocgx2}` – mario Jan 19 '20 at 13:20