(cross posting my SO answer here)
Looks like the MathML that works is [presentation
whereas SymPy outputs [content
Unsurprisingly, Word is unable to convert from content to
presentation, as that requires some degree of mathematical knowledge
on the part of the software.
SymPy [probably ought to
presentation format, but until that is implemented, you might try to
find some other software that can convert between the two (I don't
know of any myself, unfortunately).
On Thu, Dec 1, 2016 at 5:14 PM, Yuxiang Wang
> (cross-posting between here and SO)
> Dear all,
> It seems that MathML works OK with my word with simple copy and paste for
> strings such as
> But when I try to use sympy's mathml printer:
> from sympy import S
> from sympy.printing.mathml import mathml
> my_eqn = S(1) / 2
> The output is:
> And I cannot copy and paste it into word to make it a Word equation.
> Could anyone please help?
> Thank you,
> 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 firstname.lastname@example.org.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.