swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: bc0d9b6cc2e699afac8ab08ad31e5cbda1414799 authored by Unknown Author on 05 November 2002, 09:54:28 UTC
This commit was manufactured by cvs2svn to create tag 'v3-03-09b'.
Tip revision: bc0d9b6
latex3.C
{
   //example illustrating a TPaveText with Latex inside
   gROOT->Reset();
   TCanvas c1("c1");
   TPaveText pt(.05,.1,.95,.8);

   pt.AddText("#frac{2s}{#pi#alpha^{2}}  #frac{d#sigma}{dcos#theta} (e^{+}e^{-} #rightarrow f#bar{f} ) = \
 #left| #frac{1}{1 - #Delta#alpha} #right|^{2} (1+cos^{2}#theta)");

   pt.AddText("+ 4 Re #left{ #frac{2}{1 - #Delta#alpha} #chi(s) #[]{#hat{g}_{#nu}^{e}#hat{g}_{#nu}^{f} \
(1 + cos^{2}#theta) + 2 #hat{g}_{a}^{e}#hat{g}_{a}^{f} cos#theta) } #right}");

   pt.AddText("+ 16#left|#chi(s)#right|^{2}
 #left[(#hat{g}_{a}^{e}^{2} + #hat{g}_{v}^{e}^{2})
 (#hat{g}_{a}^{f}^{2} + #hat{g}_{v}^{f}^{2})(1+cos^{2}#theta)
 + 8 #hat{g}_{a}^{e} #hat{g}_{a}^{f} #hat{g}_{v}^{e} #hat{g}_{v}^{f}cos#theta#right] ");

   pt.SetLabel("Born equation");
   pt.Draw();
}
back to top