(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

<math 
xmlns="http://www.w3.org/1998/Math/MathML";><mfrac><mn>1</mn><mn>2</mn></mfrac></math>


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:

<apply><divide/><cn>1</cn><cn>2</cn></apply>


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.

Reply via email to