Logo ROOT  
Reference Guide
accents.C
Go to the documentation of this file.
2 {
3  TCanvas *S = new TCanvas("script","accents",400,250);
4 
5  TLatex Tl;
6  Tl.SetTextSize(0.09);
7  Tl.SetTextAlign(12);
8  TLatex Tt;
9  Tt.SetTextSize(0.09);
10  Tt.SetTextFont(82);
11  Tt.SetTextAlign(12);
12 
13  // Draw First Column
14  float y, x1, x2;
15  float step = 0.25;
16  y = 0.85; x1 = 0.02; x2 = x1+0.3;
17 
18  Tt.DrawText(x1, y, "#hat") ; Tl.DrawLatex(x2, y, "#hat{a}");
19  y -= step ; Tt.DrawText(x1, y, "#check") ; Tl.DrawLatex(x2, y, "#check{a}");
20  y -= step ; Tt.DrawText(x1, y, "#acute") ; Tl.DrawLatex(x2, y, "#acute{a}");
21  y -= step ; Tt.DrawText(x1, y, "#grave") ; Tl.DrawLatex(x2, y, "#grave{a}");
22 
23 
24  // Draw Second Column
25  y = 0.85; x1 = 0.52; x2 = x1+0.3;
26  Tt.DrawText(x1, y, "#dot") ; Tl.DrawLatex(x2, y, "#dot{a}");
27  y -= step ; Tt.DrawText(x1, y, "#ddot") ; Tl.DrawLatex(x2, y, "#ddot{a}");
28  y -= step ; Tt.DrawText(x1, y, "#tilde") ; Tl.DrawLatex(x2, y, "#tilde{a} ");
29 
30  return S;
31 }
TText::DrawText
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
Definition: TText.cxx:175
TAttText::SetTextSize
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:46
TLatex::DrawLatex
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
Definition: TLatex.cxx:1927
TLatex
To draw Mathematical Formula.
Definition: TLatex.h:18
RooFitShortHand::S
RooArgSet S(const RooAbsArg &v1)
Definition: RooGlobalFunc.cxx:354
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
y
Double_t y[n]
Definition: legend1.C:17
TAttText::SetTextAlign
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition: TAttText.h:41
TCanvas
The Canvas class.
Definition: TCanvas.h:23
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
accents
TCanvas * accents()
Definition: accents.C:1
TAttText::SetTextFont
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:45