I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, so it doesn't matter and it's distracting.
Other than just having a separate "for printing" version of the PDF where I turn off the hyperlinks, is there a way to have the printed version come out without the coloured links?


ocgcolorlinksdoes indeed colour the links for the screen version and leave them black for the printed version, but it has some downsides: the links cannot break across lines; any spaces within the links are set at their natural width and not stretched or shrunk to match with the surrounding text. Thereforeocgcolorlinksis really only a good option when the links are short, unbreakable, single words. I've been pondering if there is a way to use the power of thesoulpackage to get around these restrictions, but I haven't spent a lot of time on it. – Lev Bishop Oct 22 '10 at 23:42soulat all. – Ben Lerner Apr 18 '13 at 16:53ocgx2package. It uses B. Lerners code with some refinements, to allow for page breaks and nested links. See below. – AlexG Apr 11 '17 at 10:41