[texhax] Coloured text with plain TeX

Rodolfo Medina romeomedina at libero.it
Mon Mar 1 13:38:24 CET 2004

-----Messaggio originale-----
Da: Hartmut Henkel [mailto:hartmut_henkel at gmx.de]
Inviato: domenica 29 febbraio 2004 14.39
A: Rodolfo Medina
Cc: texhax at tug.org
Oggetto: Re: [texhax] Coloured text with plain TeX

On Sun, 29 Feb 2004, Rodolfo Medina wrote:

> How is it possible to get multi coloured text in the output file,
> using plain TeX, in text mode and also in math mode?

Actually it's easy:

\input color.tex \textcolor{red}{Hi} \bye

Then: tex -> dvips

Regards, Hartmut

Thanks a lot, it worked perfectly.

But my final purpose was to insert some coloured text inside Metapost
And it didn't work.
I tried to follow exactly what is said on page 21 of John Hobby's Metapost
my metapost input file looks something like this:

verbatimtex \input color.tex etex


label(btex \textcolor{red}{Hi} etex,z2);

No complain, no error message;
but in the .ps file there's `Hi' normally black. What can I do?

Thanks indeed,

More information about the texhax mailing list