Predefined colors?

Denis Girou Denis.Girou at idris.fr
Mon Sep 11 23:26:22 CEST 2000


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

>>>>> "Denis.Bitouze" == Denis  <=?iso-8859-1?Q?Bitouz=E9?= <bitouze at univ-littoral.fr>> writes:

    Denis.Bitouze> it is written, in the document « Présentation de PSTricks », by Denis
    Denis.Bitouze> Girou, that more than hundred colors are predefined. But, if I try to
    Denis.Bitouze> use the color 'pink' (as in some examples in the document), I get the
    Denis.Bitouze> following error message

    Denis.Bitouze>    PSTricks error.  See User's Guide for further information.
    Denis.Bitouze>                  Type  H <return>  for immediate help.
    Denis.Bitouze> ! Color `pink' not defined.
    Denis.Bitouze> \@pstrickserr ... immediate help.}\errmessage {#1}
    Denis.Bitouze>                                                   \endgroup

  Few colors are defined by default (see documentation page 4). To use others, 
you must first define them (today, use the syntax of the standard `color'
package, not the one of PSTricks - for that, load the `pstcol' package in
place of `pstricks').

  The "usenames" loading option allow you to load the definition of a set of
useful color names (for the "dvips" driver, the file used is "dvipsnam.def").

\documentclass{article}

\usepackage[dvips,usenames]{pstcol}

\definecolor{Pink}{rgb}{1.,0.75,0.8}

\pagestyle{empty}

\begin{document}

\begin{pspicture}(5,5)
  % Color "Pink" explicitely defined
  \psframe[fillstyle=solid,fillcolor=Pink](5,5)
  % Color "Aquamarine" defined in the file dvipsnam.def
  \pscircle[fillstyle=solid,fillcolor=Aquamarine](3,3){1} 
\end{pspicture}

\end{document}

D.G.

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list