Hi Pawel,
AFAIK the rendering of the labels is actually handled by Cairo.jl (look for
tex2pango in Cairo.jl
<https://github.com/JuliaLang/Cairo.jl/blob/master/src/Cairo.jl>). There
some TeX commands (\it, \rm, _, ^, etc) are translated into Pango markup
format <https://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
Additionally many/most TeX symbols are converted into unicode. More
sophisticated commands, like \frac, are not handled at the moment.
It would be great to have more complete support, but I guess it is not so
easy since it would require a custom typesetting system (or one delegates
the rendering to some external program, but then all the text has to go
through this). Maybe there is some TeX/MathML engine using Pango one could
use?
Best,
Alex.
On Wednesday, 17 September 2014 22:59:38 UTC+2, Paweł Biernat wrote:
>
> Hi,
>
> Is it possible to use LaTeX labels in Winston? In the examples.jl there
> is a point [1] where some LaTeX-like syntax is used in a label.
>
> I was trying to push "$\frac{1}{2}$" as a label and already tested various
> escaped versions, including "\$\\frac{1}{2}\$" and "\\frac{1}{2}" but I
> didn't achieve the expected result.
>
> [1] https://github.com/nolta/Winston.jl/blob/master/test/examples.jl#L18
>
> Best,
> Paweł
>