About TLatex

I have been using different symbols in the graphical. But when I wanted to write h/2pi (Plank’s constant divided by 2pi) It was not possible. And :frowning: I do not know if there is a way to write this constant into the graphical. thanks :slight_smile:

Try:

{
   gROOT->Reset();
   TCanvas *c1 = new TCanvas("c1","test",600,700);
   // write formulas
   TLatex l;
   TText  t;
   l.DrawLatex(0.1,0.9,"#frac{h}{2#pi}");
}

Note that your post is not related to documentation.

Thanks, but I wanted to write \hbar like in latex2e. I think it is not possible with ROOT :frowning:
or somebody has other idea? :unamused:

Sorry… I forgot it is not implement yet. See the program of work:

couet.home.cern.ch/couet/POW_files/frame.htm

slide 15. #hbar is on the list …

#hbar is now implementent in the cvs head.

thaks a lot!!! I feel :laughing: :laughing: :laughing: