[Scilab-users] jlatexmath color in xstring

Adrien Vogt-Schilb vogt at centre-cired.fr
Tue Jul 2 11:44:35 CEST 2013


It works.
Thx

On 01/07/2013 16:54, Calixte Denizet wrote:
> 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?
>>
>
>


-- 
Adrien Vogt-Schilb (Cired)
+33 (0) 1 43 94 73 83




More information about the users mailing list