[pstricks] \multido and \newrgbcolor

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Jul 9 17:17:49 CEST 2005


Philippe Charpentier wrote:

> the following pstricks code
> 
> \multido{\n=0+0.012}{80}{\newrgbcolor{macouleur}{\n\space 0\space
> \n}{\macouleur \Large Livre Math }}
> 
> was working with TeTeX-2.0.2, but with TeTeX-3.0 I get the following
> error
> 
> ! File ended while scaning use of \newrgbcolorx.
> 
> How I have to modify the code to get it working with the last package
> pstricks?

update your pstricks.sty and maybe xcolor.sty, too.
However, you shouldn't use the TeX-syntax for the color.
Use the LaTeX one and with the optional argument of
\textcolor you can really simplify the code

Herbert


\listfiles
\documentclass[12pt]{article}
\usepackage{pstricks,multido}
\pagestyle{empty}
\begin{document}

\multido{\n=0+0.012}{80}{%
\definecolor{macouleur}{rgb}{\n,0,\n}{\color{macouleur} \Large Livre Math }}

\multido{\n=0+0.012}{80}{\textcolor[rgb]{\n,0,\n}{\Large Livre Math }}

\end{document}



  *File List*
  article.cls    2004/02/16 v1.4f Standard LaTeX document class
   size12.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2005/06/02 v0.23 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/06/02 v1.08 `PSTricks' (tvz)
   xcolor.sty    2005/06/06 v2.03 LaTeX color extensions (UK)
    color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
  multido.sty    2004/05/17 package wrapper for PSTricks `multido.tex', 
(HV/RN)
  multido.tex    2004/05/18 v1.41 `multido' (tvz)
  ***********




More information about the PSTricks mailing list