TLatex Issue in PDF Output

Yes, you read it right, I have an issue with PDF output when using TLatex (NOT TMathText!)

On the canvas in my Aqua window, I can see subscripts in my TLegend produced with TLatex. They look fine (attached file theory_h_p3.pdf, from a screen capture). When I save the canvas to a pdf file, now there is an ugly large space between the letters and the subscript (attached file theory_p3.pdf).

In the same script, I produce some other plots and they do not have this problem. The only difference between those plots and this “p3” plot that I can see is the text size and a few other minor details. The script is also attached (theory_h.C), and the function responsible for plotting is called “graph_p3”.

Any ideas what might be causing this?

Jean-François
theory_h.C (7.76 KB)
theory_p3.pdf (39.2 KB)
theory_h_p3.pdf (57.7 KB)

Thanks Jean-François. I will look at it.
Note that you can not have any issue with TMathText and PDF as it is not implemented :slight_smile:

Hi Jean François,

I just ran your macro using the ROOT trunk on Mac. It creates 3 files:

-rw-r--r--@   1 couet  staff       34937 Jul 31 10:37 theory_p1.pdf
-rw-r--r--@   1 couet  staff       39703 Jul 31 10:37 theory_p3.pdf
-rw-r--r--@   1 couet  staff       33974 Jul 31 10:37 theory_h_p2.pdf

For me they are all fine.
theory_h_p2.pdf (33.2 KB)
theory_p1.pdf (34.1 KB)
theory_p3.pdf (38.8 KB)

I just tried with ROOT 6.04 and indeed it works fine there. My previous work was done with 5.34/18. I guess the problem has already been fixed.

Jean-François