[metapost] Different colours in a label

Aditya Mahajan adityam at umich.edu
Mon Nov 12 20:04:59 CET 2007

On Mon, 12 Nov 2007, Pétiard François wrote:

> Aditya Mahajan a écrit :
>> Sorry, I can't help you with latex, but if you can work with a pdf file,
>> then ConTeXt seems to handle colors fine. To get just a blue square root
>> symbol, you can use
>> \setupcolors[state=start]
>> \starttext
>> \startMPpage
>> label(\sometxt{$\color[blue]{\sqrt{\color[black] 2}}$},(0,0));
>> label(\sometxt{$\sqrt{2}$},(100,100));
>> \stopMPpage
>> \stoptext
>> You need to have both ConTeXt and ruby installed. Compile this with
>> texexec <filename> and it will give you a pdf file.
>> So you can generate your figures through context, and include the
>> resulting pdf file in the latex document.
> Thank you but I don't have installed ruby and that's not a solution for
> me, because I need to exchange files with other persons and I can't ask
> them to install ruby...

Send them just the pdf and say that you made the pdf in adobe imagemaker 
or something that just generates pdf :)


More information about the metapost mailing list