Hi,
I'm trying to compile a pspicture environment, where some colors are
defined numerically, e.g.
==
\definecolor{color125}{rgb}{0.0,0.24313725490196078,1.0}
\definecolor{color142}{rgb}{0.0,0.13333333333333333,1.0}
\definecolor{color153}{rgb}{0.0,0.25098039215686274,1.0}
\definecolor{color138}{rgb}{0.0,0.08627450980392157,1.0}
==
However, at one line, I need to use color `BurntOrange':
==
\psline[linewidth=0.04cm,linecolor=BurntOrange](12.72,1.41)(3.14,-2.95)
==
The problem is that I'm getting, at compilation, that xcolor does not
know what `BurntOrange' actually is. Could I defined it manually? If
so, what would be the standard RGB values? If not so, what could I do?
I could provide a MWE, but I don't think it would be that useful.
Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
If all else fails, try the obvious.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkx6JMkACgkQM0LLzLt8Mhw55QCbBuoBxUBCovj0yNMXRfVKFQy8
U7cAoIrcjJAqIziRJyemi4UrdgdDK/wq
=4Oq0
-----END PGP SIGNATURE-----
> \psline[linewidth=0.04cm,linecolor=BurntOrange](12.72,1.41)(3.14,-2.95)
> ==
>
> The problem is that I'm getting, at compilation, that xcolor does not
> know what `BurntOrange' actually is. Could I defined it manually? If
> so, what would be the standard RGB values? If not so, what could I do?
> I could provide a MWE, but I don't think it would be that useful.
\usepackage[dvipsnames,prologue]{pstricks}
Herbert
Herbert Voss <Herber...@FU-Berlin.de> writes:
Hi Mr. Voß,
I'm now trying with
==
\usepackage{graphicx}
\usepackage[dvipsnames,prologue]{pstricks}
\usepackage[dvipsnames]{xcolor}
\usepackage{color}
==
in the preamble, to no avail. Is there something wrong in that?
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
If all else fails, try the obvious.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkx6PuwACgkQM0LLzLt8Mhws1QCghAHsPAfgLi7KjIdSFqF8TpQ7
XIsAnjTd4x1vlV2uKJgqmH0MSlMZuUel
=QWW0
-----END PGP SIGNATURE-----
> I'm now trying with
>
> ==
> \usepackage{graphicx}
> \usepackage[dvipsnames,prologue]{pstricks}
> \usepackage[dvipsnames]{xcolor}
> \usepackage{color}
> ==
>
> in the preamble, to no avail. Is there something wrong in that?
\documentclass{article}
\usepackage[dvipsnames,prologue]{pstricks}
\begin{document}
\psline[linewidth=4pt,linecolor=BurntOrange](5,0)
\end{document}
Herbert
Herbert Voss <Herber...@FU-Berlin.de> writes:
Thanks. The worst is that your example (and even my complicated image)
works in a separate document. Consider my example:
==
\scalebox{1} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-7.19)(16.56,7.19)
\definecolor{color125}{rgb}{0.0,0.24313725490196078,1.0}
\definecolor{color142}{rgb}{0.0,0.13333333333333333,1.0}
\definecolor{color153}{rgb}{0.0,0.25098039215686274,1.0}
\definecolor{color138}{rgb}{0.0,0.08627450980392157,1.0}
\definecolor{color106}{rgb}{0.0,0.1607843137254902,1.0}
\definecolor{color237}{rgb}{0.0,0.18823529411764706,1.0}
\definecolor{color457}{rgb}{1.0,0.03529411764705882,0.0}
\definecolor{color233}{rgb}{0.0,0.054901960784313725,1.0}
\definecolor{color241}{rgb}{0.0,0.10980392156862745,1.0}
\definecolor{color245}{rgb}{0.0,0.08235294117647059,1.0}
\definecolor{color306}{rgb}{1.0,0.10588235294117647,0.0}
\definecolor{color294}{rgb}{1.0,0.0,0.011764705882352941}
\definecolor{color375}{rgb}{0.2549019607843137,1.0,0.0}
\definecolor{color379}{rgb}{0.07450980392156863,1.0,0.0}
\definecolor{color340}{rgb}{0.12549019607843137,1.0,0.0}
\definecolor{color365}{rgb}{0.2,1.0,0.0}
\definecolor{color342}{rgb}{0.09019607843137255,1.0,0.0}
\definecolor{color411}{rgb}{0.06666666666666667,1.0,0.0}
\definecolor{color356}{rgb}{0.01568627450980392,1.0,0.0}
\definecolor{color493}{rgb}{1.0,0.0,0.803921568627451}
\definecolor{color521}{rgb}{1.0,0.0,0.8313725490196079}
\definecolor{color489}{rgb}{1.0,0.0,0.7098039215686275}
\definecolor{color485}{rgb}{1.0,0.0,0.7764705882352941}
\definecolor{color500}{rgb}{1.0,0.0,0.9294117647058824}
\definecolor{color543}{rgb}{1.0,0.6392156862745098,0.0}
\definecolor{color536}{rgb}{1.0,0.3254901960784314,0.0}
\definecolor{color565}{rgb}{1.0,0.6313725490196078,0.0}
\definecolor{color585}{rgb}{1.0,0.592156862745098,0.0}
\definecolor{color598}{rgb}{1.0,0.5254901960784314,0.0}
\definecolor{color640}{rgb}{1.0,0.4823529411764706,0.0}
\definecolor{color588}{rgb}{1.0,0.4980392156862745,0.0}
\definecolor{color605}{rgb}{1.0,0.4588235294117647,0.0}
\definecolor{color644}{rgb}{1.0,0.5803921568627451,0.0}
\definecolor{color784}{rgb}{1.0,0.5725490196078431,0.0}
\definecolor{color803}{rgb}{1.0,0.5411764705882353,0.0}
\definecolor{color793}{rgb}{1.0,0.5098039215686274,0.0}
\definecolor{color797}{rgb}{1.0,0.6039215686274509,0.0}
\definecolor{color807}{rgb}{1.0,0.5568627450980392,0.0}
\definecolor{color971}{rgb}{0.0,0.7372549019607844,1.0}
\definecolor{color982}{rgb}{0.0,0.6784313725490196,1.0}
\definecolor{color986}{rgb}{0.0,0.5803921568627451,1.0}
\definecolor{color1146}{rgb}{0.0,0.7411764705882353,1.0}
\definecolor{color1135}{rgb}{0.0,0.9372549019607843,1.0}
\definecolor{color1142}{rgb}{0.0,0.7686274509803922,1.0}
\definecolor{color1134}{rgb}{0.0,0.8705882352941177,1.0}
\definecolor{color1326}{rgb}{0.0,0.8784313725490196,1.0}
\psline[linewidth=0.04cm,linestyle=dotted,dotsep=0.16cm](0.0,0.45)(14.02,0.43)
\rput(14.5325,0.42){L.T.}
\psline[linewidth=0.04cm](9.04,0.41)(4.78,4.91)
\psline[linewidth=0.04cm](9.38,1.71)(4.54,-4.15)
\rput(4.5059376,-4.32){$a$}
\rput(5.362344,4.6){$a'$}
\psline[linewidth=0.04cm](3.02,0.43)(13.3,3.61)
\psline[linewidth=0.04cm](10.42,0.43)(1.52,-4.55)
\rput(13.604062,3.66){$b'$}
\rput(1.14625,-4.8){$b$}
\psline[linewidth=0.04cm,linecolor=color106,linestyle=dotted,dotsep=0.16cm](4.9,0.39)(13.78,-6.85)
\rput(7.4159374,-2.28){\color{color106}$\alpha$}
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dotted,dotsep=0.16cm](4.8,0.45)(10.38,4.97)
\rput(10.852344,5.02){\color{color125}$\alpha'$}
\psline[linewidth=0.04cm,linecolor=color138,linestyle=dotted,dotsep=0.16cm](7.96,4.27)(9.32,0.41)
\psline[linewidth=0.04cm,linecolor=color142,linestyle=dotted,dotsep=0.16cm](9.3,0.41)(13.52,-6.53)
\rput(9.374063,2.04){\color{color138}$\beta'$}
\rput(10.297656,-0.12){\color{color153}$\beta$}
\psdots[dotsize=0.12,linecolor=color125](13.54,-6.61)
\psdots[dotsize=0.12,linecolor=color125](8.26,3.31)
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dashed,dash=0.16cm 0.16cm](13.52,-6.61)(13.46,0.43)
\psdots[dotsize=0.12,linecolor=color125](13.46,0.43)
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dashed,dash=0.16cm 0.16cm](8.26,3.31)(8.3,0.43)
\psdots[dotsize=0.12,linecolor=color125](8.34,0.43)
\rput(8.1076565,2.78){\color{color233}$J'$}
\rput(8.076094,0.74){\color{color237}$J$}
\rput(13.798437,-6.56){\color{color241}$I$}
\rput(13.724688,0.08){\color{color245}$I'$}
\psline[linewidth=0.04cm,linecolor=color294](3.38,5.93)(13.46,0.45)
\psline[linewidth=0.04cm,linecolor=color306](8.3,0.49)(13.68,-6.77)
\rput(6.2040625,4.78){\color{red}$i'$}
\rput(10.997344,-3.64){\color{red}$i$}
\psdots[dotsize=0.12,linecolor=color340](7.34,-0.69)
\psline[linewidth=0.04cm,linecolor=color342](6.5,0.47)(11.88,-6.79)
\rput(6.9776564,-0.64){\color{color356}$K$}
\psline[linewidth=0.04cm,linecolor=color365,linestyle=dashed,dash=0.16cm 0.16cm](7.34,-0.67)(7.34,2.19)
\psdots[dotsize=0.12,linecolor=color375](7.34,2.19)
\rput(7.6146874,2.32){\color{color379}$K'$}
\psline[linewidth=0.04cm,linecolor=color294](2.74,4.69)(10.6,0.37)
\rput(9.311093,-3.7){\color{color411}$j$}
\rput(4.315,4.16){\color{red}$j'$}
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dashed,dash=0.16cm 0.16cm](6.5,0.43)(6.5,2.59)
\psdots[dotsize=0.12,linecolor=color125](6.5,2.63)
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dashed,dash=0.16cm 0.16cm](10.42,0.47)(10.4,-4.75)
\psdots[dotsize=0.12,linecolor=color125](10.38,-4.77)
\psline[linewidth=0.04cm,linecolor=color457,linestyle=dashed,dash=0.16cm 0.16cm](8.26,0.43)(8.26,1.19)
\psdots[dotsize=0.12,linecolor=color125](8.26,1.23)
\psline[linewidth=0.04cm,linecolor=color125,linestyle=dashed,dash=0.16cm 0.16cm](8.98,0.43)(9.0,1.23)
\psdots[dotsize=0.12,linecolor=color125](8.98,1.23)
\psline[linewidth=0.04cm,linecolor=color485,linestyle=dotted,dotsep=0.16cm](2.08,6.05)(16.54,-5.19)
\psline[linewidth=0.04cm,linecolor=color489,linestyle=dotted,dotsep=0.16cm](7.78,7.17)(10.98,-7.17)
\psdots[dotsize=0.12,linecolor=color493](9.3,0.43)
\rput(15.771719,-5.4){\color{color500}$\gamma'$}
\rput(8.955313,-1.54){\color{color521}$\gamma$}
\psline[linewidth=0.04cm,linecolor=color536,linestyle=dotted,dotsep=0.16cm](10.4,0.43)(10.38,6.71)
\rput(10.911718,6.72){\color{color543}$\delta'$}
\rput(1.8953125,-4.9){\color{color565}$\delta$}
\psdots[dotsize=0.12,linecolor=color598](10.42,-0.45)
\psdots[dotsize=0.12,linecolor=color585](9.44,-0.15)
\psline[linewidth=0.04cm,linecolor=color588,linestyle=dashed,dash=0.16cm 0.16cm](10.42,-0.47)(10.42,0.45)
\psdots[dotsize=0.12,linecolor=color565](10.42,0.45)
\psline[linewidth=0.04cm,linecolor=color598,linestyle=dashed,dash=0.16cm 0.16cm](9.42,-0.15)(9.42,0.43)
\psdots[dotsize=0.12,linecolor=color605](9.42,0.41)
\psline[linewidth=0.04cm,linecolor=BurntOrange](12.72,1.41)(3.14,-2.95)
\rput(13.195625,1.64){\color{color640}$i_2$}
\psline[linewidth=0.04cm,linecolor=color644](10.42,-0.45)(2.88,6.33)
\rput(3.1040626,5.64){\color{color605}$i_2'$}
\psdots[dotsize=0.12,linecolor=color784](7.8,1.89)
\psline[linewidth=0.04cm,linecolor=color793,linestyle=dashed,dash=0.16cm 0.16cm](7.8,1.91)(7.78,-1.03)
\psdots[dotsize=0.12,linecolor=color797](7.78,-1.07)
\rput(7.98,2.16){\color{color803}$X'$}
\rput(8.206562,-1.24){\color{color807}$X$}
\psline[linewidth=0.04cm,linecolor=color971](6.64,0.47)(12.02,-6.79)
\psline[linewidth=0.04cm,linecolor=color971](2.54,4.79)(12.62,-0.69)
\rput(2.7240624,4.6){\color{color982}$p'$}
\rput(11.36625,-5.44){\color{color986}$p$}
\psdots[dotsize=0.12,linecolor=color1134](7.46,-0.59)
\psdots[dotsize=0.12,linecolor=color1135](7.38,2.15)
\rput(7.548281,-0.24){\color{color1142}$Y$}
\rput(6.9598436,1.9){\color{color1146}$Y'$}
\psline[linewidth=0.04cm,linecolor=color1134,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{<->}(8.1,1.89)(8.1,2.13)
\psline[linewidth=0.04cm,linecolor=color1134,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{<->}(7.832669,-1.0236657)(8.047331,-0.9163344)
\psline[linewidth=0.04cm,linecolor=color1326,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{<->}(8.0,-0.95)(7.48,-0.57)
\end{pspicture}
}
==
When compiling it using
==
\documentclass{article}
\usepackage[dvipsnames,prologue]{pstricks}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\usepackage{pst-text}
\usepackage{pst-tree}
\usepackage{pst-eps}
\usepackage{pst-fill}
\usepackage{pst-node}
\usepackage{pst-math}
\usepackage{psfrag}
==
as a preamble (I always include all the pst* packages) in the separate
document, it works. But in my book of ~1300 pages, there must be
something in the preamble which creates this problem.
I use, among ~hundred packages, tikz, subfigure. These are the only
color-related ones.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
If it's worth doing, it's worth over-doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkx6UcYACgkQM0LLzLt8MhwNiACfQX0NHW1hsY4OJuC8NRDI1pMZ
8xoAn03wEnasJwUoTHFS9WMtdAbKeKrF
=Wolp
-----END PGP SIGNATURE-----
>> \documentclass{article}
>> \usepackage[dvipsnames,prologue]{pstricks}
>>
>> \begin{document}
>>
>> \psline[linewidth=4pt,linecolor=BurntOrange](5,0)
>>
>> \end{document}
> as a preamble (I always include all the pst* packages) in the separate
> document, it works. But in my book of ~1300 pages, there must be
> something in the preamble which creates this problem.
>
> I use, among ~hundred packages, tikz, subfigure. These are the only
> color-related ones.
then copy your preamble into my test document and then comment
out packages until the error went away.
Herbert
Herbert Voss <Herber...@FU-Berlin.de> writes:
Well, it did not work too. But I managed to define BurntOrange by
myself. Weird. I'll investigate this later, if I've spare time.
Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
If you don't buy a ticket, you can't win the raffle.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkx6ZCoACgkQM0LLzLt8MhxsXQCfZwf6nuJ2CTKOMqzncok0LdBV
npIAn1xwM0V9Csuvi1bpz6CwYqbWLuun
=BAUg
-----END PGP SIGNATURE-----
>> then copy your preamble into my test document and then comment
>> out packages until the error went away.
> Well, it did not work too. But I managed to define BurntOrange by
> myself. Weird. I'll investigate this later, if I've spare time.
please send me your preamble as privat mail
HErbert
> I'm now trying with
>
> ==
> \usepackage{graphicx}
> \usepackage[dvipsnames,prologue]{pstricks}
> \usepackage[dvipsnames]{xcolor}
> \usepackage{color}
> ==
>
> in the preamble, to no avail. Is there something wrong in that?
1) Do you still need the color-package, when the xcolor-package
is loaded also?
2) Why do you load xcolor with "dvipsnames"-option and
color without "dvipsnames"-option?
3) Did you also try the "usenames"-option?
(It is explained in David Carlisle's grfguide.ps)
E.g.,
\usepackage{graphicx}
\usepackage[dvipsnames,prologue]{pstricks}
\usepackage[dvipsnames, usenames]{xcolor}
\usepackage[dvipsnames, usenames]{color}
By the way: On my system I have a file "color.pro" which is
part of the dvips-driver. Therein you can find out about
CMYK-values of named colors.
Therein I found BurntOrange: (0) (0.51) (1) (0)
Ulrich
\usepackage{graphicx}
\usepackage[dvipsnames,prologue]{pstricks}
pstricks loads xcolor by default and passes its options to xcolor
and xcolor loads by default color ...
Herbert
Thanks.
Besides this -- according to the xcolor-manual -- the option
"usenames" would have been obsolete for the xcolor-package.
I wonder whether some important option-settings from
the xcolor-package get silently overridden when after loading
that package also the color-package is loaded explicitly
without dvipsnames-option and without
usenames-option...
Ulrich
> I use, among ~hundred packages, tikz, subfigure. These are the only
> color-related ones.
Well other package (e.g. tikz) load xcolor. And if it is already
loaded you can't reload it with other options (and you would get
errors in the log about an option clash).
Test the difference:
\documentclass[12pt,a4paper]{article}
\usepackage{tikz}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\color{BurntOrange} abc
\end{document}
\documentclass[12pt,a4paper]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
\color{BurntOrange} abc
\end{document}
--
Ulrike Fischer
> I wonder whether some important option-settings from
> the xcolor-package get silently overridden when after loading
> that package also the color-package is loaded explicitly
> without dvipsnames-option and without
> usenames-option...
You can't load package color afterwards again. xcolor simulates
the loading of color, thus LaTeX thinks, color is already loaded.
Then LaTeX only checks if there are new options and throws
an error if yes. At any case LaTeX doesn't load the package twice.
--
Heiko Oberdiek
Thanks for pointing out that loading xcolor ensures that
color won't be loaded also.
[ I think if loading the color-package is _simulated_ , you
cannot at all talk about it being loaded _again_/_twice_. ]
In any case this means that the OP needs to detect the
first package which (internally also) loads the xcolor-package
and has to provide the appropriate xcolor-options already
within the \usepacke/\RequirePackage-directive for that
package.
Sincerely
Ulrich
Or the OP can use \PassOptionsToPackage before loading
other packages that might load package xcolor.
--
Heiko Oberdiek
Thanks all for your answers. Sorry, I thought nobody would have
answered later.
The problem is clearly related to my preamble, that I'll send to
Mr. Voß as soon as possible, to be sure to know the cause of the problem.
I tested the MWE in a separate document,
as I said, and it worked perfectly, without defining BurntOrange
manually.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --
If you want a thing done right, do it yourself.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iEYEARECAAYFAkx8BzsACgkQM0LLzLt8MhxrFgCgj99Lkd452htIpW92ZkJxNZ1n
1qwAnjRisuXapqNzDA5YLqI3B5bxAy+k
=Xfo4
-----END PGP SIGNATURE-----