[pdftex] color and fancyvrb
James Haefner
jhaefner at biology.usu.edu
Thu Aug 7 09:50:59 CEST 2003
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. 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
>
>
not a fix, but for what it's worth: "\null" works for "anything"
Jim Haefner
More information about the pdftex
mailing list