! 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}
?
Can you please send a minimal example.
Joseph Wright
> 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
\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.
> 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
> 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
>> \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