Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Re: [Pyx-user] Multi-line equations

 Re: [Pyx-user] Multi-line equations From: Michael Schindler - 2004-05-18 16:53:18 Hello Walter, hello Jörg, fancybox.sty is your friend. The solution Jörg suggested has the drawback that you have to specify a with (in his example: 10cm) Please use fancybox in your LaTeX-preamble and replace eqnarray by Beqnarray (see p. 600 in the new edition of the "LaTeX Companion", p. 279, for those who have only access to the old edition ;-)) The use of fancybox might be of general use for such applications with itemize, enumerate, center, flushleft ... not only for equations. > The following code allows one to use the eqnarray environment: The following code does even more than just housekeeping of the vertical, horizontal (or even math???) mode: ---------------------------------------------------------------------- from pyx import * text.set(mode="latex") text.preamble(r"\usepackage{fancybox}") c = canvas.canvas() c.text(0,0, r"\begin{Beqnarray*} \mbox{this} &=& \mbox{better}\\ y &=& z \end{Beqnarray*}") c.writetofile("test.eps") ---------------------------------------------------------------------- > Indeed, this may well be worth adding to the FAQ... Will be done in just a second. Gert Ingold and Michael Schindler -- "A mathematician is a device for turning coffee into theorems" Paul Erdös. 

 [Pyx-user] Multi-line equations From: Walter Brisken - 2004-05-18 14:59:24 First of all, I'd like to say that PyX is an excellent piece of software -- I was sold the first time I started using it. How does one create multi-line equations, ie., of the form: \begin{eqnarray*} x &=& y \\ y &=& z \end{eqnarray*} ? I checked the FAQ and didn't see this addressed and the online manual doesn't seem to discuss this either. Please CC me on any replys Thanks, Walter 
 Re: [Pyx-user] Multi-line equations From: Joerg Lehmann - 2004-05-18 16:23:46 Hi Walter, On 18.05.04, Walter Brisken wrote: > How does one create multi-line equations, ie., of the form: > > \begin{eqnarray*} x &=& y \\ y &=& z \end{eqnarray*} The following code allows one to use the eqnarray environment: ------------------------------------------------------------------------ from pyx import * # enable the LaTeX mode for the eqnarray environment text.set(mode="latex") c = canvas.canvas() # switch to the vertical mode of TeX/LaTeX to enable multiline output c.text(0, 0, r"""\begin{eqnarray} x &=& y \\ y &=& z \end{eqnarray}""",· [text.parbox(10)]) c.writeEPSfile("test") ------------------------------------------------------------------------ > I checked the FAQ and didn't see this addressed and the online manual > doesn't seem to discuss this either. Indeed, this may well be worth adding to the FAQ... Jörg 
 Re: [Pyx-user] Multi-line equations From: Michael Schindler - 2004-05-18 16:53:18 Hello Walter, hello Jörg, fancybox.sty is your friend. The solution Jörg suggested has the drawback that you have to specify a with (in his example: 10cm) Please use fancybox in your LaTeX-preamble and replace eqnarray by Beqnarray (see p. 600 in the new edition of the "LaTeX Companion", p. 279, for those who have only access to the old edition ;-)) The use of fancybox might be of general use for such applications with itemize, enumerate, center, flushleft ... not only for equations. > The following code allows one to use the eqnarray environment: The following code does even more than just housekeeping of the vertical, horizontal (or even math???) mode: ---------------------------------------------------------------------- from pyx import * text.set(mode="latex") text.preamble(r"\usepackage{fancybox}") c = canvas.canvas() c.text(0,0, r"\begin{Beqnarray*} \mbox{this} &=& \mbox{better}\\ y &=& z \end{Beqnarray*}") c.writetofile("test.eps") ---------------------------------------------------------------------- > Indeed, this may well be worth adding to the FAQ... Will be done in just a second. Gert Ingold and Michael Schindler -- "A mathematician is a device for turning coffee into theorems" Paul Erdös. 
 Re: [Pyx-user] Multi-line equations From: Gert Ingold - 2004-05-19 08:11:53 Attachments: Message as HTML Hi, On Tue, May 18, 2004 at 08:59:17AM -0600, Walter Brisken wrote: >=20 > First of all, I'd like to say that PyX is an excellent piece of software= =20 > -- I was sold the first time I started using it. >=20 > How does one create multi-line equations, ie., of the form: >=20 > \begin{eqnarray*} x &=3D& y \\ y &=3D& z \end{eqnarray*} >=20 > ? >=20 > I checked the FAQ and didn't see this addressed and the online manual=20 > doesn't seem to discuss this either. it is now in the FAQ (version 0.6.3b) which can be found in CVSHEAD or accessed via ;. Best regards, Gert --=20 Gert-Ludwig Ingold | =20 Institut fuer Physik | email: Ingold@... Universitaet Augsburg | Phone: +49-821-598-3234 D-86135 Augsburg | Fax : +49-821-598-3222 Germany | =20 WWW homepage: http://www.physik.uni-augsburg.de/theo1/ingold