[scilab-Users] Re: Color with a LaTeX string

Calixte calixte.denizet at scilab-enterprises.com
Wed Nov 30 10:28:23 CET 2011


Hi,


On 30/11/2011 08:24, Orbeman wrote:
> Ok but the argument [rgb] does not seem to be recognized.
>
> eg : the expression xstring(0.5,0.5,'$\textcolor[rgb]{0,1,0}{Hello}$') give
> */rgb]0,1,0Hello/* in the plot window but
> xstring(0.5,0.5,'$\textcolor{green}{Hello}$') word good.
>
> The problems is that I don't know the name of each color in the colormap...

For now, you have two solutions:
i) \definecolor{MyGreen}{rgb}{0,1,0}\textcolor{MyGreen}{Hello World}
ii) \fgcolor{#00FF00}{Hello Wolrd}

In a next release of JLaTeXMath, it would be possible to have 
\textcolor{0,255,0}{Hello}.

Calixte

> Thank you.
>
> --
> View this message in context: http://mailinglists.scilab.org/Color-with-a-LaTeX-string-tp3546663p3547531.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.




More information about the users mailing list