remove question and answer
[PyX/mjg.git] / manual / tex1.py
blobf445449278d984cbebcb8646907248519c3d6195
1 #!/usr/bin/env python
2 import sys
3 sys.path[:0] = [".."]
4 from pyx import *
5 from pyx import tex
8 c = canvas.canvas()
9 t = c.insert(tex.tex())
10 t.text(0, 0, "Hello, world!")
11 print "width:", t.textwd("Hello, world!")
12 print "height:", t.textht("Hello, world!")
13 print "depth:", t.textdp("Hello, world!")
14 c.writetofile("tex1.eps")