I am creating a file type images for presentation / written, I have been interested in the monochrome package xcolor, but by using it I have not obtained the expected results, check the documentation for pstricks but , this is very old and refers to an obsolete package (pstcol), an image to illustrate what I need:

Low resolution for tex.stackexchange.com

and the MWE:


Clarification: Not grayscale, an image in "black and white", modify a single image is no problem, what I want is to turn the colors in a "global" for a document (50 images). In the "Frequently Asked Questions" from the documentation of "pstricks" (pag 304) describes the process with a code like the following:

% ...

It does not work an today.

  • the package pstcol is really outdated and doesn't work with the current packages. However, there are many more colors defined than the above ones.
    – user2478
    May 21, 2013 at 18:51
  • Thanks Herbert. In fact I would like to turn the colors of "linecolor" , "fillcolor" and "hatchcolor" May 22, 2013 at 2:56
  • see my edited answer for a change of a keyword.
    – user2478
    May 22, 2013 at 5:33

2 Answers 2


your code looks like an complicated export from a graphical program and as Karl already pointed out it is not clear what exactly do you want: the image in grayscale or an automatic conversion from color to monochrome? However, here is a correct code for a black and white output:


an automatic conversion into grayscale is possible with the following statement in your preamble:

/setrgbcolor { 0.07 mul exch 0.71 mul add exch 0.21 mul add setgray } def 

with the pstricks.sty from http://texnik.dante.de/tex/latex/pstricks/ you can use


then it is done by the package.

You can also overwrite the definition for the keys in your documents preamble, eg for hatchcolor

  • Thanks for new version of pstricks. And "YES" the code its generate for my "vanilla-version" of GeoGebra 4. May 21, 2013 at 17:08
  • Many Thanks... that was exactly what I wanted May 22, 2013 at 11:08

I'm not sure to correctly understand, but I think you want a non-filled image.

So, try to substitute your corresponding lines with:

  • Thanks, but, i need changes "global" pstricks enviroment in document (disable all colors or convert in black and white) May 21, 2013 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.