[pdftex] color and fancyvrb
A.J.M. van Engelen
vanengelen at few.eur.nl
Thu Aug 7 14:35:27 CEST 2003
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. 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?
Fons van Engelen
--
-----------------------------------------------------------------
Erasmus Universiteit Rotterdam E-mail: vanengelen at few.eur.nl
Econometrisch Instituut Phone: (+31)10-4082378/4082231
Postbus 1738
3000 DR Rotterdam Fax: (+31)10-4089162
The Netherlands
Homepage: http://www.few.eur.nl/few/people/vanengelen/
-----------------------------------------------------------------
More information about the pdftex
mailing list