From: William H. <w.h...@as...> - 2007-05-03 17:17:08
|
Hi Michael On 5/3/07, Michael Hearne <mh...@us...> wrote: > Since reading your comment, I investigated Latex (which I've never really > used) a bit more and found that Latex should indeed do what I want. Sinc= e > I'm building a system in Python, and PyX wraps Latex, I'm not sure that t= his > is a misuse of PyX... > I wouldn't say that PyX "wraps" LaTeX, rather it uses LaTeX to typeset labels for use in graphs. If you want to use LaTeX in some other capacity (e.g., making a table), then PyX won't help that much. In that case, you might as well use LaTeX directly, by which I mean that your python script would write the .tex file and run pdflatex on it. The only advantage I see to using PyX in this context is that it frees you from having to worry about paper sizes and whether your table will fit. PyX will let you easily scale your table to fit on the page once you are done, although whether the result will be readable is another matter.... You could do the same in straight LaTeX too, but it is a bit trickier. Alternatively, you could take a look at ReportLab (www.reportlab.org), which would be a more pythonic solution, albeit without such good typography IMO. Cheers Will --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia |