ROOT
master
Reference Guide
Loading...
Searching...
No Matches
latex2.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_graphics
3
/// \notebook
4
/// This macro draws 4 Latex-style formula in a canvas and prints the canvas as a Postscript file.
5
///
6
/// \macro_image
7
/// \macro_code
8
///
9
/// \author Rene Brun
10
11
void
latex2()
12
{
13
TCanvas
*
c1
=
new
TCanvas
(
"c1"
);
14
TLatex
l
;
15
l
.SetTextAlign(23);
16
l
.SetTextSize(0.1);
17
l
.DrawLatex(0.5, 0.95,
"e^{+}e^{-}#rightarrowZ^{0}#rightarrowI#bar{I}, q#bar{q}"
);
18
l
.DrawLatex(0.5, 0.75,
"|#vec{a}#bullet#vec{b}|=#Sigmaa^{i}_{jk}+b^{bj}_{i}"
);
19
l
.DrawLatex(0.5, 0.5,
"i(#partial_{#mu}#bar{#psi}#gamma^{#mu}+m#bar{#psi})=0\
20
#Leftrightarrow(#Box+m^{2})#psi=0"
);
21
l
.DrawLatex(0.5, 0.3,
"L_{em}=eJ^{#mu}_{em}A_{#mu} , J^{#mu}_{em}=#bar{I}\
22
#gamma_{#mu}I , M^{j}_{i}=#SigmaA_{#alpha}#tau^{#alphaj}_{i}"
);
23
c1
->
Print
(
"latex2.ps"
);
24
}
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TLatex
To draw Mathematical Formula.
Definition
TLatex.h:18
TLine::Print
void Print(Option_t *option="") const override
Dump this line with its attributes.
Definition
TLine.cxx:419
c1
return c1
Definition
legend1.C:41
l
TLine l
Definition
textangle.C:4
tutorials
visualisation
graphics
latex2.C
ROOT master - Reference Guide Generated on Wed Dec 18 2024 10:10:39 (GVA Time) using Doxygen 1.9.8