[Scilab-users] Help on LaTeX rendering for xstring

classic Classic list List threaded Threaded
2 messages Options
fmiyara fmiyara
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Help on LaTeX rendering for xstring


Dear all,

Is there some way to customize the font size when using xstring?

For instance

xstring(0, 0, "$\large p_{1}(t)$")

creates p1(t) with a large font, but what if one wants exactly 12pt?

I tried adding \fontsize{12}{12} and \fontsize{12}\selectfont but it doesn't work...

Thank you.

Regards,

Federico Miyara

Libre de virus. www.avast.com

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Philippe Roux Philippe Roux
Reply | Threaded
Open this post in threaded view
|

Re: Help on LaTeX rendering for xstring

Hi,

Le 08/04/2019 à 22:08, Federico Miyara a écrit :
>
> Dear all,
>
> Is there some way to customize the font size when using xstring?
>
> For instance
>
> xstring(0, 0, "$\large p_{1}(t)$")

xstring generate graphic entities of type "Text" which have a
"font_size" property (can vary from 1 to 6) so the easiest way is to get
the handle of this entity and modify the font size :

xstring(0, 0, "$p_{1}(t)$")
E=gce();E.font_size=5

Cheers,
Philippe

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users