[pstricks] Colored text with pstricks in plain TeX
Christoph Bersch
usenet at bersch.net
Fri Oct 16 12:48:39 CEST 2009
Herbert Voss schrieb:
> Christoph Bersch schrieb:
>
>>> When writing TeX code then don't use LaTeX syntax!
>>>
>>> \input color
>>> \input pstricks
>>> \red redtext
>>> {\blue blue text}
>>> \pspicture(3,3)
>>> \psline[linecolor=red](1,1)(3,3)
>>> \endpspicture
>>> \bye
>> Hmm, that works. However, what puzzles me is that \textcolor{blue}{blue
>> text} works in a TeX document without PSTricks:
>
> then change the order of loading pstricks and color
When I change the order of loading it doesn't work either and I get a
different Postscript error (/undefined in rgb):
\input color
\input pstricks
\color{red} red text
\psline[linecolor=red](1,1)(3,3)
\bye
-> Error: /stackunderflow in --setrgbcolor--
\input pstricks
\input color
\color{red} red text
\psline[linecolor=red](1,1)(3,3)
\bye
-> Error: /undefined in rgb
Christoph
More information about the PSTricks
mailing list