7 Aug 2010 22:25
Problem with colors
Steve Checkoway <s <at> pahtak.org>
2010-08-07 20:25:01 GMT
2010-08-07 20:25:01 GMT
If I use the following MP program, I get a red X exactly as I would expect. If I change red to any of cyan,
magenta, or yellow, I get an error. I'm not entirely sure what I'm doing wrong.
If I change the \color{yellow} to \color[rgb]{1,1,0} then I can get yellow text. (Presumably, I can do the
same with cyan or magenta, but I didn't test it.)
$ cat foo.mp
prologues := 3;
outputtemplate := "%j.mps";
verbatimtex
%&latex
\documentclass{article}
\usepackage{color}
\begin{document}
etex
beginfig(1);
label(btex \color{red}X etex, origin);
endfig;
end
$ cat foo.log
This is MetaPost, version 1.208 (kpathsea version 5.0.0) (mem=mpost 2010.07.27) 7 AUG 2010 13:19
**foo
(./foo.mp
>> cmyk
! Improper type.
<to be read again>
(
<argument> withcolor.cmyk(
0,0,1,0)
(Continue reading)
RSS Feed