Issue with LateX #ell in ROOT plots

Hi,

we already discussed this issue in this blog post, but unfortunately I am not able to edit it anymore.

I want to insert the LateX #ell in a plot done with ROOT. This is not supported by .pdf , but it is in .png, substituting #ell with \ell.

This plot should go in a paper and therefore the plot should be of the highest graphical quality possible (ideally .pdf). Is there any other solution?

@couet was suggesting using web graphics, can you give more details on this or on any other solution to get a publication quality plot with #ell ?

Thank you, best,
Giovanni

Hi,
when something like this happens, I usually open my favorite PDF editor and manually replace my regular symbols with these fancy symbols. I don’t have any better solution unfortunately…

Only \ell is available via TMathText. #ell does not exist via TLatex. As said in the documentation TMathText is rendered on Screen in png gif … and PostScript. But not in PDF. The new web interface is based on a completely different text engine. I guess @linev can tell you more.

Hi,

web-based canvas uses MathJax for text rendering like:

"\\sqrt{\\zeta_{q} \\zeta_{\\ell}}"

You can try to enable web-mode in your macro to see if it fit your needs.
Here is C++ macro which demonstrates how it can be used:
draw.cxx (290 Bytes)

And produced PDF file:

c1.pdf (23.0 KB)

Same can be done in python.

You can also directly save your canvas as a .tex file:

and then compile it with pdflatex.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.