Thanks, this is missing from the documentation of the Winston package. Maybe someone should add a short info on the typesetting options, so people won't have to go to the mailing list to figure it out.
As for Pango rendering MathML there is an example at the end of the script gallery [1]. But I couldn't figure out how they achieved this as I don't know Cairo/Pango at all. [1] http://www.pango.org/ScriptGallery W dniu czwartek, 18 września 2014 08:16:33 UTC+2 użytkownik Alex napisał: > > Hi Pawel, > > AFAIK the rendering of the labels is actually handled by Cairo.jl (look > for tex2pango in Cairo.jl > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJuliaLang%2FCairo.jl%2Fblob%2Fmaster%2Fsrc%2FCairo.jl&sa=D&sntz=1&usg=AFQjCNF3Cp9Rz43PyR88FNO1BoKYIulrjg>). > > 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ł >> >
