Re: [sympy] Output sympy equation to word using mathml

2016-12-05 Thread Denis Akhiyarov
Not cross-posting from SO:

WORD supports LATEX, so does SYMPY.

Here are more details:

http://superuser.com/a/509805/299586

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/d8a3a3e6-a19b-4cd4-8015-e7133a1962d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[sympy] Output sympy equation to word using mathml

2016-12-01 Thread Yuxiang Wang
(cross-posting between here and SO 
<http://stackoverflow.com/questions/40921128/output-sympy-equation-to-word-using-mathml>
)

Dear all,

It seems that MathML works OK with my word with simple copy and paste for 
strings such as

http://www.w3.org/1998/Math/MathML;>12


But when I try to use sympy's mathml printer:

from sympy import Sfrom sympy.printing.mathml import mathml
my_eqn = S(1) / 2print(mathml(my_eqn))


The output is:

12


And I cannot copy and paste it into word to make it a Word equation.


Could anyone please help?


Thank you,


Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/7ffc6145-0c00-4911-86fb-db8bb6ade0a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.