[pstricks] \usepackage[usenames]{pstcol}
Antoine Pairet
lists at pairet.be
Fri Dec 5 08:18:39 CET 2008
In your example i.e. to use the Apricot color, you have to load the
xcolor package with the options dvipsnames. Have also a look at the
svgnames option.
\usepackage[dvipsnames]{xcolor}
\usepackage[svgnames]{xcolor}
regards,
On Thu, 2008-12-04 at 22:43 -0800, David Arnold wrote:
> All,
>
> Looking at: http://sarovar.org/download.php/69/chap2.pdf
>
> Section 2.2 has this example:
>
> \usepackage[usenames]{pstcol}
>
> \begin{pspicture}(0,0)(3,3)
> \psframe[linestyle=none, fillstyle=solid,fillcolor=Apricot](0,0)(2,2)
> \pspolygon[linestyle=none,fillstyle=solid,fillcolor=Tan](0,2)(2,2)
> (3,3)(1,3)
> \pspolygon[linestyle=none,fillstyle=solid,fillcolor=Mahogany]
> (2,0)(3,1)(3,3)(2,2)
> \end{pspicture}
>
> But it doesn't seem to work.
>
> Package pstcol Warning: ************************************
> (pstcol) The package `pstcol' is obsolet!
> (pstcol) You should use `pstricks' directly:
> (pstcol) \usepackage{pstricks}
> (pstcol) ************************************.
>
> ) (./one.aux)
>
> ! Package xcolor Error: Undefined color `Apricot'.
>
> How do I make this example work so I have those dvips color names? Of
> course, I can \definecolor the names I need, but is there a way to
> get all 64 colors with a single stroke?
>
> D.
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
More information about the PSTricks
mailing list