Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xcolor Error: Undefined color `pink'

1,980 views
Skip to first unread message

SA

unread,
Aug 31, 2007, 8:00:35 AM8/31/07
to
I get the following error message when I compile my tex file. l.127
is \psset{linecolor=red,fillcolor=pink,fillstyle=solid}. Why do I
receive this error ? How can I solve the problem. Does anyone have an
idea ?


! Package xcolor Error: Undefined color `pink'.

See the xcolor package documentation for explanation.
Type H <return> for immediate help.
...

l.127 ...color=red,fillcolor=pink,fillstyle=solid}

?

Joseph Wright

unread,
Aug 31, 2007, 8:16:59 AM8/31/07
to

Can you please send a minimal example.

Joseph Wright

Ulrike Fischer

unread,
Aug 31, 2007, 8:31:46 AM8/31/07
to
Am Fri, 31 Aug 2007 05:00:35 -0700 schrieb SA:

> I get the following error message when I compile my tex file. l.127
> is \psset{linecolor=red,fillcolor=pink,fillstyle=solid}. Why do I
> receive this error ?

Because the color pink is not defined.

> How can I solve the problem.

Define it. Either by loading the definition with an option of xcolor
or by defining it with the commands described in the documentation.


--
Ulrike Fischer

Herbert Voss

unread,
Aug 31, 2007, 9:15:45 AM8/31/07
to

SA

unread,
Sep 3, 2007, 6:00:45 AM9/3/07
to
On 31 A ustos, 15:16, Joseph Wright <joseph.wri...@morningstar2.co.uk>
wrote:

> On Aug 31, 1:00 pm, SA <sami.ar...@gmail.com> wrote:
>
> > I get the following error message when I compile my tex file. l.127
> > is \psset{linecolor=red,fillcolor=pink,fillstyle=solid}. Why do I
> > receive this error ? How can I solve the problem. Does anyone have an
> > idea ?
Here is minimal example:

\documentclass{article}
\usepackage{afterpage}
\usepackage{amsmath}
\usepackage{epsfig}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{multido}
\usepackage{pst-text}
\usepackage{xcolor}
\usepackage{color}

\begin{document}
\definecolor{pink}{rgb}{1,0,1}
% \psset{linecolor=red,fillcolor=green,fillstyle=solid}
\psset{linecolor=red,fillcolor=pink,fillstyle=solid}
\begin{figure}
\begin{pspicture}(2,5)
\rput(0,2){
\pscurve(1,0)(0,-1.0)(-1,0)
\pscurve(-1,0)(0,-0.5)(1,0)
}
\end{pspicture}
\end{figure}

\end{document}

Defining color pink solves the problem.
Thank you.
Sami Arica.

Ulrike Fischer

unread,
Sep 3, 2007, 6:47:34 AM9/3/07
to
Am Mon, 03 Sep 2007 03:00:45 -0700 schrieb SA:

> On 31 A ustos, 15:16, Joseph Wright <joseph.wri...@morningstar2.co.uk>
> wrote:
>> On Aug 31, 1:00 pm, SA <sami.ar...@gmail.com> wrote:
>>
>>> I get the following error message when I compile my tex file. l.127
>>> is \psset{linecolor=red,fillcolor=pink,fillstyle=solid}. Why do I
>>> receive this error ? How can I solve the problem. Does anyone have an
>>> idea ?
> Here is minimal example:
>
> \documentclass{article}
> \usepackage{afterpage}
> \usepackage{amsmath}
> \usepackage{epsfig}

Use better graphicx.

> \usepackage{pstricks}
> \usepackage{pst-plot}
> \usepackage{multido}
> \usepackage{pst-text}
> \usepackage{xcolor}
> \usepackage{color}

Why do you load both color packages?

> Defining color pink solves the problem.

It works fine for me without this.

\listfiles
\documentclass{article}
\usepackage{pstricks}
\usepackage{xcolor}

\begin{document}


\psset{linecolor=red,fillcolor=pink,fillstyle=solid}
\begin{figure}
\begin{pspicture}(2,5)
\rput(0,2){
\pscurve(1,0)(0,-1.0)(-1,0)
\pscurve(-1,0)(0,-0.5)(1,0)
}
\end{pspicture}
\end{figure}

\end{document}

article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2006/08/10 v0.32 LaTeX wrapper for `PSTricks'
(RN,HV)
pstricks.tex 2006/12/22 v1.15 `PSTricks' (tvz)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2005/12/29 v1.1 MiKTeX 'color' configuration
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)


--
Ulrike Fischer

Uwe Siart

unread,
Sep 4, 2007, 5:20:55 AM9/4/07
to
SA <sami....@gmail.com> writes:

> Defining color pink solves the problem.

Didn't you notice Herbert's answer? Your xcolor seems to be dated. In a
recent xcolor package the color pink is predefined.

--
Uwe

Uwe Siart

unread,
Sep 4, 2007, 5:24:06 AM9/4/07
to
Ulrike Fischer <ne...@nililand.de> writes:

>> \usepackage{pstricks}
>> [...]


>> \usepackage{xcolor}
>> \usepackage{color}
>
> Why do you load both color packages?

... while both of them are unnecessary in this case. Recent pstricks
loads xcolor by default.

--
Uwe

0 new messages