Comment #2 on issue 2101 by Maurice.Bremond: latex printing with piecewise function : reversed expr and cond
http://code.google.com/p/sympy/issues/detail?id=2101

If I try compiling \\begin{cases} x & \\text{for}\\: x < 0 \\\\0 &
\\text{for}\\: 0 \\leq x \\end{cases}, I get "Misaligned alignment tab character &".

I do not have this (My laptop is ubuntu 10.4 with std latex packages).

Here is what I do :

from sympy import *
import sympy.galgebra.latex_ex as tex

tex.Format()
print "\\begin{cases} x & \\text{for}\\: x < 0 \\\\0 & \\text{for}\\: 0 \\leq x \\end{cases}"
tex.xdvi(filename='Piecewise.tex')

Also, can you add a test?
Yes I will do that

Maurice


Attachments:
        Piecewise.log  6.8 KB
        Piecewise.dvi  492 bytes

--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to