[pstricks] Colored text with pstricks in plain TeX
Christoph Bersch
usenet at bersch.net
Fri Oct 16 11:59:41 CEST 2009
Herbert Voss schrieb:
> Christoph Bersch schrieb:
>
>> % PSTricks and color, does not work, Postscript error!
>> %
>> \input color
>> \input pstricks
>> \color{red} redtext
>> \textcolor{blue}{blue text}
>> \pspicture(3,3)
>> \psline[linecolor=red](1,1)(3,3)
>> \endpspicture
>> \bye
>
> 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:
% Color only, works
%
\input color
\color{red} redtext
\textcolor{blue}{blue text}
\bye
Christoph
More information about the PSTricks
mailing list