[pdftex] color and fancyvrb

Heiko Oberdiek oberdiek at uni-freiburg.de
Thu Aug 7 16:40:53 CEST 2003


On Thu, Aug 07, 2003 at 01:35:27PM +0200, A.J.M. van Engelen wrote:

> Consider the following (minimal) file:
> 
> \documentclass{article}
> \usepackage{color,fancyvrb}
> \begin{document}
> First page toptext
> 
> \vspace*{\textheight}\vspace*{-1cm}
> First page bottomtext
> 
> Second page toptext
> 
> \vspace*{\textheight}\vspace*{-1cm}
> Second page bottomtext
> 
> %\newpage
> %anything
> \begin{Verbatim}[formatcom=\color{red}]
> x
> \end{Verbatim}
> \end{document}
> 
> Pdflatex results in a file where the second page is typset in red, i.e. 
> the colorchange is already applied to the second page.

The missing color stack problem. Package pdfcolmk.sty tries
a solution, but it does not help here.
  Probably the next pdfTeX version will contain a color stack.
Thus your test file already runs fine with a test version of mine.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 


More information about the pdftex mailing list