[pdftex] color and fancyvrb

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Thu Aug 7 14:19:20 CEST 2003


fons van engelen writes:

> Pdflatex results in a file where the second page is typset in red, i.e. 
> the colorchange is already applied to the second page. If some text is 
> added at the top of the third page (uncomment %anything) OR if an 
> explicit \newpage is given after the second page (uncomment %\newpage), 
> the colors are OK.
> Just LaTeX viewed with Yap or dvips handles everything OK.
> 
> What's going on here?

lack of a pdftex colour stack.  dvips gets it right because it has a
stack which protects against colours bleeding from one page to the
next (almost all page changes in latex involve a colour change, for a
page number, if nothing else).  yap presumably emulates the stack.

use the pdfcolmk package (on ctan).  iirc, it requires pdfelatex, but
that's no problem if you're running a current miktex distribution --
it's probably the default anyway (since you don't provide details of
your system it's hard to be sure).


More information about the pdftex mailing list