Submitted by phk @ 08-29 [09:09 am]
hangul Ű ϹǷ euc-kr ڵ Ǿ ϴ
Python ҽ ڵԴϴ. ϸ hangulTest.eps ϰ hangulTest.pdf
˴ϴ.
from pyx import *
text.set(mode="latex")
text.preamble(r"\usepackage{hangul}")
text.preamble(r"\usepackage{times}")
c = canvas.canvas()
c.text(0, 0, r"\LaTeX ѱ Ʈ: \ $y = \frac{1}{\sqrt{x}} \ \mbox{(, $x > 0$)} $ \ by PyX.")
c.writeEPSfile("hangulTest")
c.writePDFfile("hangulTest")
Submitted by phk @ 08-29 [09:09 am]
̹ ѱ۰ Ե PDF Ͽ Python ҽ ڵԴϴ.
ϸ painterHangul.eps ϰ painterHangul.pdf ˴ϴ.
from pyx import *
text.set(mode="latex")
text.preamble(r"\usepackage{hangul}")
mypainter = graph.axis.painter.regular(outerticklength=graph.axis.painter.ticklength.normal)
c = graph.axis.pathaxis(path.curve(0, 0, 3, 0, 1, 4, 4, 4),
graph.axis.linear(min=0, max=10, title=" axis by \LaTeX", painter=mypainter))
c.writeEPSfile("painterHangul")
c.writePDFfile("painterHangul")