# Latex formatting in TLegend objects

hi there,
I looked into the User’s Guide, the tutorials and the forum, and did not find any info about it : I do not manage to use latex formatting in a TLegend objject, either in the AddEntry or in the SetHeader method. Is there a way?

thanks,
Johann

Jan

thanks Jan,
it appears that I was simply using font 70 for the legend text, which does not seem to work with LATEX formatting. Setting the font to 72 worked…

best,
Johann

Yes 70 means font #7 with precision 0 and 72 means precision 2. The precision 0 means “fast hardware fonts” see:
root.cern.ch/root/htmldoc/TAttText.html
In that case TLaTex behaves like TText.