From: Andre W. <wo...@us...> - 2004-07-13 15:17:17
|
Hi, On 13.07.04, Gert Ingold wrote: > > I'm wondering if it's possible to use amsmath from within PyX to write > > math formulas. And if so, how can I tell PyX to use that package?? > > yes, you can by using > > text.preamble(r"\usepackage{amsmath}") > > If you want to load more than one package, the following syntax allowing > multiline strings is useful > > text.preamble(r"""\usepackage{amsmath} > \usepackage{...} > ...""") Not to forget text.set(mode="latex") in the very beginning. In know, this is an FAQ ... André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |