[pstricks] Problems with bsp322.tex: \definecolor[ps]{lambda}{rgb}{Red Corr Green Corr Blue Corr} gives an error
Alexander Maurer
alexander.maurer at chemie.uni-regensburg.de
Thu Jul 13 16:54:01 CEST 2006
Dear pstricks community, dear Mr. Herbert Voss,
I am using a "normal" LaTeX distribution from Suse Linux 10.0 DVD with
the Kile Frontend under Suse Linux 10.0. All of the pstricks examples
from "http://PSTricks.de/Examples/buch" are running perfectly. I'm
compiling a tex-File by latex, and dvips. But yesterday, I tried to
compile the file "bsp322.tex" from "http://PSTricks.de/Examples/buch".
It demonstrates the wave color-model and creates a visualization of the
elecetromagnetic spectrum of visible light. But there were more then 100
errors. I printed line by line from "bsp322.tex" and compliled after
every line, and i isolated the problematic line:
\definecolor[ps]{lambda}{rgb}{Red Corr Green Corr Blue Corr}
this line gives the following error-messages:
/test-wave.tex:19:Missing number, treated as zero. ...ambda}{rgb}{Red
Corr Green Corr Blue Corr}
./test-wave.tex:19:Illegal unit of measure (pt inserted).
...ambda}{rgb}{Red Corr Green Corr Blue Corr}
./test-wave.tex:19:Missing = inserted for \ifdim. ...ambda}{rgb}{Red
Corr Green Corr Blue Corr}
./test-wave.tex:19:Missing number, treated as zero. ...ambda}{rgb}{Red
Corr Green Corr Blue Corr}
./test-wave.tex:19:Illegal unit of measure (pt inserted).
...ambda}{rgb}{Red Corr Green Corr Blue Corr}
./test-wave.tex:20:Paragraph ended before \c at lor@@rgb was complete.
The whole file, up to this line is:
\documentclass[a4paper,10pt]{article}
\usepackage{pstricks}
\usepackage{xcolor}
\begin{document}
\newcount\WL \unitlength.75pt
\def\WaveToPS#1{
\definecolor{tmp}{wave}{#1}
\extracolorspec{tmp}\tmp
\expandafter
\convertcolorspec\tmp{rgb}\tmp
\expandafter\WaveToPSi\tmp
}
\def\WaveToPSi#1,#2,#3{
\pstVerb{/Red {#1} def /Green {#2} def /Blue {#3}
def}
}
\pstVerb{/Corr {dup 0 gt {Gamma exp} if } def }
\definecolor[ps]{lambda}{rgb}{Red Corr Green Corr Blue Corr}
\end{document}
Could anyone help?
Greetings from Regensburg
Alexander Maurer
More information about the PSTricks
mailing list