[pstricks] Please refresh my memory.

John Culleton john at wexfordpress.com
Tue Oct 26 23:54:59 CEST 2010


On Tuesday 26 October 2010 15:01:50 Herbert Voss wrote:
> Am 26.10.2010 20:35, schrieb John Culleton:
> > My TeX distro is texlive 2010. I use Pstricks only now and again.
> > Here is my main file colorp.tex:
> > ------------------------------------
> > \input pstricks.tex
> > \input color1.tex
> > \bye
> > -----------------------------
> > color1.tex consists of a repetitive series of lines like:
> > ------------------------------------------------------
> > \definecolor{dummy} {cmyk}{0.0,0.0,0.0,0.0}%
>
> TeX didn't know the command \definecolor. It is from
> package color. With PSTricks you can write
> \newcmykcolor{dummy}{0 0 0 0}
>
>
>
> \input pstricks.tex
> \catcode`\@=11\relax
> \def\definecolor#1#2#3{%
>   \newcmykcolor{#1}{\expandafter\definecolor at i#3\@nil}}
> \def\definecolor at i#1,#2,#3,#4\@nil{#1 #2 #3 #4}
>
> \definecolor{dummy} {cmyk}{1,0.4,0.3,0.2}
>
> \psline[linewidth=10pt,linecolor=dummy](6,0)
> \bye
>
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/

I have narrowed down my problem to the fillcolor parameter. The 
statements below should give me a filled circle but instead gives me a 
white fill and a circle of the correct color:
---
 \definecolor{dummy} {cmyk}{1,0.4,0.3,0.2}
\pscircle[linecolor=dummy,fillcolor=dummy]{1.5} 

So I solved the problem thus:

 \definecolor{dummy} {cmyk}{1,0.4,0.3,0.2}
\pscircle*[linecolor=dummy]{1.5} 

For some reason the fillcolor parameter has no effect. Wierd!

JOhn C.


More information about the PSTricks mailing list