[pstricks] pstricks.sty : problems with the colors
MLuque5130 at aol.com
MLuque5130 at aol.com
Tue Oct 4 06:12:41 CEST 2005
The new version of PSTricks creates problems with colors defined with
postscript.
I use a macro of the type:
newcommand{\NewColorRGB}[2]{\@newcolor{#1}{#2 setrgbcolor}}
it worked very well previously.
That always works in the following example, but does not work if I call
PSTricks by \usepackage{pstricks}:
The cause seems to be in pstricks.sty.
Can you find a solution of this problem ?
Manuel Luque
\documentclass{minimal}
%\usepackage{pstricks}
\input{pstricks.tex}
\makeatletter
\newcommand{\NewColorRGB}[2]{\@newcolor{#1}{#2 setrgbcolor}}
\makeatother
\begin{document}
\NewColorRGB{MyColorTest}{0.5 0.5 add % red 100%
1 2 div % green 50%
1 4 div % blue 25%
}
\begin{pspicture}(10,6)
\psline[linecolor=MyColorTest](10,6)
\end{pspicture}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20051004/e9a9a236/attachment.html
More information about the PSTricks
mailing list