Just a note on this, in respect to Linux tools:
convert can convert color (mode) of bitmap/raster images to grayscale (it can also convert a pdf to a bitmap/raster image)
ghostscript can convert pdfs (that include images) into grayscale pdfs (see comments in graypdf.sh, though; there's problems with metadata)
- options
monochrome to (x)color for pdflatex will cause mostly text color (and, I guess, related vector objects) to be grayscale
So, basically there would be two approaches to generating a gray pdflatex document:
pdflatex it in color - and then convert the whole document to gray using ghostscript
- Use
pdflatex with \write18, and use definitions of commands that will generate grayscale image on the fly.
Note that even if converting the whole PDF, the process will not necessarily be straightforward (for more, see Converting (any) PDF to black (K)-only CMYK).
For the second option, there is an example of a \includegraphicsRS in:
, which calls convert under \write18 to generate resized versions of images; I'm guessing it can be relatively easily modified to generate grayscale images instead (it may also be possible to force convert to return the image data through stdout - so it is directly embedded in the pdf stream, instead of generating an intermediate file; but I wouldn't know how to solve that at the moment).
Anyways, hope this helps someone,
Cheers!
latex->dvips->ps2pdfsequence it can be done from within latex – Herbert Sep 20 '11 at 8:07