[OS X TeX] monochrome option in pstricks and pst-solides3D

Herbert Schulz herbs at wideopenwest.com
Wed Feb 7 17:02:50 CET 2018


> On Feb 5, 2018, at 7:24 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu> wrote:
> 
> I have recently completed a book project in which I extensively used figures in pstricks and in particular in pst-solides3D, gleefully putting in lots of colors.   Now I am told by my publisher that they want the book in monochrome (color adds way too much to the production costs for a printed book).
> 
> When I tried to put a monochrome option in my document style command (\documentstyle[11pt,monochrome]{book}) pstricks just ignored it.
> Then the tech team at the publisher suggested modifications to my color definitions (in a colormacros.sty file); with these, the plain pstricks figures came out monochrome, but the  pst-solides3D still insists on some colors. This may be simply because the particular colors were not covered in the redefinitions provided by the tech team.  But it would be much more convenient if I could just call a monochrome type option for pstricks in the preamble.  Is such a thing possible, and if so how do I do it?
> 
> 
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
> 
> telephones:
> Office    (617)627-3843
> Dept.    (617)627-3234
> Dept. fax    (617)627-3966
> http://www.tufts.edu/~znitecki/

Howdy,

Searching for `monochrome' (without the quotes, of course) in the pstricks documentation led me to

\documentclass[...]{...}
\usepackage[monochrome]{pstcol}
% ...

\makeatletter
\def\PSTricksMonochrome{%
 \def\psset at bordercolor##1{\pst at getcolor{white}{\psbordercolor}}%
 \def\psset at doublecolor##1{\pst at getcolor{white}{\psdoublecolor}}%
 \def\psset at shadowcolor##1{\pst at getcolor{darkgray}{\psshadowcolor}}%
 \def\psset at linecolor##1{\pst at getcolor{black}{\pslinecolor}}%
 \def\psset at fillcolor##1{\pst at getcolor{white}{\psfillcolor}}%
 \def\psset at gridcolor##1{\pst at getcolor{black}{\psgridcolor}}%
 \def\psset at gridlabelcolor##1{\pst at getcolor{black}{\psgridlabelcolor}}%
 \def\psset at hatchcolor##1{\pst at getcolor{black}{\pshatchcolor}}%
 \def\psset at subgridcolor##1{\pst at getcolor{gray}{\pssubgridcolor}}}
\makeatother

\PSTricksMonochrome % To force it on the whole document

so I hope it works for you.                                                                                
Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image3718064.png
Type: image/png
Size: 121 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0041.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12093360.png
Type: image/png
Size: 109 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0042.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image24687088.png
Type: image/png
Size: 109 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0043.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12076512.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0044.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12076304.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0045.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12076096.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0046.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12075888.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0047.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12075680.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0048.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12075472.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0049.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12075264.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0050.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12075056.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0051.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12074848.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0052.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12074640.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0053.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12074432.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0054.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12074224.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0055.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12074016.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0056.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12073808.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0057.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12073600.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0058.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12073392.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0059.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12073184.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0060.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12072976.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0061.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12072768.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0062.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12072560.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0063.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12072352.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0064.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12072144.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0065.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12071936.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0066.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12071728.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0067.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12071520.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0068.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12071312.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0069.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12071104.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0070.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12070896.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0071.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12070688.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0072.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12070480.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0073.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12070272.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0074.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12070064.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0075.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12069856.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0076.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12069648.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0077.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12069440.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0078.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12069232.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0079.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12069024.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0080.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: page304image12068816.png
Type: image/png
Size: 113 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20180207/3943bb23/attachment-0081.png>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list