# [pdftex] color package in pdfTeX under plain TeX

geolsoft at mail.ru geolsoft at mail.ru
Wed Aug 3 08:21:26 CEST 2005

On Wed, Aug 03, 2005 at 01:03:30AM +0200, Heiko Oberdiek wrote:
> But then, the idea of the code was to have a void
> box 255. It's true in LaTeX, but not in plain.

Now I understand the original code of \set at page@color (I

> If would be nice, if someone could confirm the analysis or
> find errors.

Works with plain TeX fine, and seems OK for plain TeX.  The
only thing is maybe the \newcount could by moved into the
second \@ifundefined, to avoid testing twice, like this:

\def\set at page@color{%
\global\let\current at page@color\current at color
\@ifundefined{GPTorg at shipout}{%
\csname newbox\endcsname\GPT at outputbox
\global\let\GPTorg at shipout\shipout
...

Or do you plan to allocate the box conditionally somewhere
else, too?  Anyway, this is not really important.

Thank you for the complete answers.

--
Best regards,