Revision 9a9e5b4cf3f43c391212ffc2c292ca1ffdba8767 authored by Unknown Author on 08 May 2006, 14:01:31 UTC, committed by Unknown Author on 08 May 2006, 14:01:31 UTC
git-svn-id: http://root.cern.ch/svn/root/tags/v5-11-02@14953 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 28e762f
latex.rb
# ruby-root testsuite
# port of the original $ROOT/latex.C tutorial
# (12/01/2004) --elathan <elathan@phys.uoa.gr>
c1 = TCanvas.new("c1","test",600,700)
# write formulas
l = TLatex.new
l.SetTextAlign(12)
l.SetTextSize(0.04)
l.DrawLatex(0.1,0.9,"1) C(x) = d #sqrt{#frac{2}{#lambdaD}} #int^{x}_{0}cos(#frac{#pi}{2}t^{2})dt")
l.DrawLatex(0.1,0.7,"2) C(x) = d #sqrt{#frac{2}{#lambdaD}} #int^{x}cos(#frac{#pi}{2}t^{2})dt")
l.DrawLatex(0.1,0.5,"3) R = |A|^{2} = #frac{1}{2}#left(#[]{#frac{1}{2}+C(V)}^{2}+#[]{#frac{1}{2}+S(V)}^{2}#right)")
l.DrawLatex(0.1,0.3,"4) F(t) = #sum_{i=-#infty}^{#infty}A(i)cos#[]{#frac{i}{t+i}}")
l.DrawLatex(0.1,0.1,"5) {}_{3}^{7}Li")
c1.Draw # Print("latex.ps")
gApplication.Run
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...