LaTeX forum ⇒ Graphics, Figures & TablesGrayscale output with latex (via GS)

Information and discussion about graphics, figures & tables in LaTeX documents.
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Grayscale output with latex (via GS)

Postby Faust » Sun Jan 17, 2010 9:19 pm

I have been asked to supply a black/white copy of some pdf's.

I presume this is for decreased size and for those who do not own a color printer.

Anyways, I have 2 questions regarding this:

-is there a way to make grayscale pfs with pdf2latex (what command if there is)

-Im using the latex- ps- pdf route via ghostscript and added commands for grayscale output, however this is as fast as a snale in hibernation. Is there a way to speed it up? I used this:

Arguments for the ghostscript postprocessing in the profile I made:

-sPAPERSIZE=a4 -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"


it looks nice and grey though but took like 5 mins to build.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Mon Jan 18, 2010 1:20 am

Try \selectcolormodel from the xcolor package:
  1. \documentclass{article}
  2.  
  3. \usepackage{xcolor}
  4.  
  5. \selectcolormodel{gray}
  6.  
  7. \begin{document}
  8.  
  9. \textcolor{blue}{\rule{5cm}{2cm}}
  10. \textcolor{yellow}{\rule{5cm}{2cm}}
  11.  
  12. \end{document}

Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Postby Faust » Mon Jan 18, 2010 5:22 pm

This doesnt work for figures Im using, just text.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 11 guests