latex2.C

Go to the documentation of this file.
00001 // This macro draws 4 Latex-style formula in a canvas and prints the canvas
00002 // as a Postscript file.
00003 // Note that this macro relies on a first implementation of the TLatex class.
00004 // There are still some discrepancies between the result on the screen
00005 // and the result on Postscript.
00006 //Author: Rene Brun
00007 void latex2(){
00008    TCanvas *c1 = new TCanvas("c1");
00009    TLatex l;
00010    l.SetTextAlign(23);
00011    l.SetTextSize(0.1);
00012    l.DrawLatex(0.5,0.95,"e^{+}e^{-}#rightarrowZ^{0}#rightarrowI#bar{I}, q#bar{q}");
00013    l.DrawLatex(0.5,0.75,"|#vec{a}#bullet#vec{b}|=#Sigmaa^{i}_{jk}+b^{bj}_{i}");
00014    l.DrawLatex(0.5,0.5,"i(#partial_{#mu}#bar{#psi}#gamma^{#mu}+m#bar{#psi})=0\
00015    #Leftrightarrow(#Box+m^{2})#psi=0");
00016    l.DrawLatex(0.5,0.3,"L_{em}=eJ^{#mu}_{em}A_{#mu} , J^{#mu}_{em}=#bar{I}\
00017    #gamma_{#mu}I , M^{j}_{i}=#SigmaA_{#alpha}#tau^{#alphaj}_{i}");
00018    c1->Print("latex2.ps");
00019 }

Generated on Tue Jul 5 15:44:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1