-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MathML copied using MathJax does not paste into Word successfully #21
Comments
I verified that this is happen as described above, but with an added layer of complexity. Word will not recognize MathML with the xmlns as provided on that page. However, even on a page that uses the correct xmlns copying from MathJax fails. It appears that Word will not recognize even the best formed MathML when the clipboard provides both the Discovery ProcessThe version of MathJax on the The Lorentz Transformations page (MathJax 2.7.1) simply passes through the <math xmlns="http://www.w3.org/1998/Math/MathML"> In my tests, even MathML with a fully formed correct If I strip the ThoughtsWhen MathML is in an IDE like the Visual Studio Code editor, the editor will syntax highlight the MathML (xml) by placing tagnames, attributes, attribute values, child text, etc. in various colors. That "beautified" MathML code when copied from Visual Studio Code and pasted into MS Word retains the background and foreground colors. This would be considered by many to be a valuable result and appears to depend upon the Does being able to paste in pretty MathML outweigh making copying and pasting math into Office Math objects easier? Instead of asking Microsoft to always convert well-formed MathML content into an Office Math object, I wonder if it is best to:
It's frustrating this is so complex. I suspect many would not realize that copying from a code editor like Visual Studio Code isn't copying plain text, but a "rich text" HTML version instead. |
Colleagues at MSFT responded:
|
Related to #4
Steps to replicate:
Show math as
, thenMathML code
. You can also chooseOriginal MathML code
.http:
to the value at the beginning of thexmls
attribute on the first line. So<math xmlns="//www.w3.org/1998/Math/MathML
becomes<math xmlns="http://www.w3.org/1998/Math/MathML"
Note that copying the same expressions with MathCAT copied as MathML are pasted into Word successfully.
The text was updated successfully, but these errors were encountered: