# [texhax] [TexHax] Black/white colour PDF

Reinhard Kotucha reinhard.kotucha at web.de
Sun May 30 02:16:39 CEST 2010

On 29 May 2010 Pierre MacKay wrote:

> I wonder if you need also to make sure that your color mode is CMYK
> and not RGB. It can be hard to specify black in RGB.

Hi Pierre,
the truth is that TeX doesn't support colors at all.  Color support is
introduced by macro packages which either use \special or \pdfliteral.

I know that you are familiar with PostScript.  So let's assume that we
are using PostScript.  If you write a PS file containing text or
graphic primitives (lines, circles,...), everything is printed in
black by default.  You don't have to worry about RGB or CMYK at all.

If you need colors, you have to specify them using the primitives
setrgbcolor or setcmykcolor.  But you always do it within a
gsave/grestore pair.

I have the impression that Jean-Baptiste is using a macro package
which calls either setrgbcolor or setcmykcolor but without the
necessary gsave/grestore pair.

I have no other explanation.  Without any macro package, TeX isn't
aware of colors at all and everything is printed in black.  As I said
in my previous mail, Jean-Baptiste has to find out which package

Regards,
Reinhard

--
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------