1

The ocgcolorlinks option to hyperref will let you have colorful links on the screen that are black (or more generally, the textcolor) when printed.

Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print "as if" they were black? (yes there is!)

I'm wondering if there is a way to do similar tricks with other applications of color in LaTeX? For instance, I have in mind \pagecolor and \color.

tl;dr:

Is it possible to render a PDF in sepia tones? ... but have it print in black and white?

0

Here's a useable work-around for the exact use case I had in mind, following answer from automatically inject code into preamble in cascading manner.

spdflatex

Make this executable.

#!/bin/bash

pdflatex -jobname=$1 \\RequirePackage{sepia} \\input{$1}

sepia.sty

Save this in ~/texmf/tex/latex/mystyles/

\RequirePackage[dvipsnames]{xcolor}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}    
\pagecolor{fondpaille!90!black}
\AtBeginDocument{\color{Sepia}}

Compile files with spdflatex for sepia tones, pdflatex for b/w.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.