[pstricks] My pBox macro.

David Arnold dwarnold45 at suddenlink.net
Sun May 17 20:28:40 CEST 2009


All,

Herbert gave me this macro:

\newpsstyle{bgCyan}{fillstyle=solid,fillcolor=cyan! 
10,linestyle=none,framesep=6pt}
\def\pBox#1{\psframebox[style=bgCyan]{{%
   \tabular{@{}c@{}}#1\endtabular}}}

When compiling in Texshop on a Mac, which I believe uses simpdftex  
latex to compile, I get this image:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 12044 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090517/1c5ef653/attachment-0002.tiff 
-------------- next part --------------


Very nice.

But when compiling with ps4pdf, I get this image (different numbers  
used):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 14134 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090517/1c5ef653/attachment-0003.tiff 
-------------- next part --------------


Note the improper placement of = sign and minus sign in first row.

Anything I can do about this?

David.


More information about the PSTricks mailing list