[Scilab-users] jlatexmath color in xstring

Calixte Denizet calixte.denizet at scilab-enterprises.com
Mon Jul 1 16:54:24 CEST 2013


Hi Adrien,

Normally you shoud modify the color of a text entity with the 
font_foreground property. But it is possible to bypass the color defined 
in font_foreground in using the following syntax:
xstring(2020,75,"${\textcolor{0,70,120}{\text{Resource cost}}}$") // 
just add { } around the LaTeX code

Calixte

On 01/07/2013 16:20, Adrien Vogt-Schilb wrote:
> Hi
>
> non of the following code:
> plot(2020,75)
>
> xstring(2020,75,"$\textcolor{0,70,120}{\text{Resource cost}}$")
> xstring(2020,75,"$\textcolor{Orange}{\text{Resource cost}}$")
> xstring(2020,75,"$\fgcolor{#00FF00}{Hello Wolrd} $")
>
> does not produce a color string
>
> How can I write a colored string in my plot?
>


-- 
Calixte Denizet
Software Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
http://www.scilab-enterprises.com




More information about the users mailing list