[pstricks] Please refresh my memory.

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Oct 26 21:01:50 CEST 2010


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


More information about the PSTricks mailing list