https://bugs.documentfoundation.org/show_bug.cgi?id=81428
--- Comment #6 from [email protected] --- We desire LibreOffice to be able to use MathML syntax, characters, format, commands, and equations generated by/for MathJax so that LibreOffice correctly represents (displays) the equation with the mathematical notations -- capturing both its structure and content by simply copy and paste. Follow these steps to display MathJax generated MathML in MSWord: (1) Simply generate the desired MathJax MathML XML (within an Editor, Web browser, other software, or obtain it from an HTML fragment) (2) Copy the desired MathJax MathML XML fragment (3) Paste the MathJax MathML XML fragment copied from, for example, HTML, notepad, etc., into Word. Here is a simple Integral, specified using the int element. The variable of integration is represented using the element bvar. The upper and lower limits of integration are usually specified using the elements lowlimit and uplimit: <math xmlns="http://www.w3.org/1998/Math/MathML"> <apply> <int/> <bvar> <ci>x</ci> </bvar> <lowlimit> <ci>a</ci> </lowlimit> <uplimit> <ci>b</ci> </uplimit> <ci>x</ci> </apply> </math> So, just Copy and Paste the above XML into Word and the Integral will be displayed in the document. Here is another example (when a≠0, there are two solutions to a x pow(2) +bx+c=0 and they are): <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mi>x</mi> <mo>=</mo> <mrow> <mfrac> <mrow> <mo>−</mo> <mi>b</mi> <mo>±</mo> <msqrt> <msup><mi>b</mi><mn>2</mn></msup> <mo>−</mo> <mn>4</mn><mi>a</mi><mi>c</mi> </msqrt> </mrow> <mrow> <mn>2</mn><mi>a</mi> </mrow> </mfrac> </mrow> <mtext>.</mtext> </math> Here is another example: square-root of X divided by (y squared - 1) Here is the XML: <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mfrac> <msqrt> <mi>x</mi> </msqrt> <mrow> <msup> <mi>y</mi> <mn>2</mn> </msup> <mo>-</mo> <mn>1</mn> </mrows> </mfrac> </math> Here is some MathJax HTML (we can copy three different MathML fragments from the below HTML and then paste each fragment into Word; Word will correctly render and display each math fragment): <!DOCTYPE html> <html> <head> <title>MathJax MathML Test Page</title> <!-- Copyright (c) 2010-2015 The MathJax Consortium --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <script type="text/javascript" src="../MathJax.js?config=MML_HTMLorMML-full"></script> </head> <body> <p> When <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>a</mi><mo>≠</mo><mn>0</mn> </math>, there are two solutions to <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>a</mi><msup><mi>x</mi><mn>2</mn></msup> <mo>+</mo> <mi>b</mi><mi>x</mi> <mo>+</mo> <mi>c</mi> <mo>=</mo> <mn>0</mn> </math> and they are <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mi>x</mi> <mo>=</mo> <mrow> <mfrac> <mrow> <mo>−</mo> <mi>b</mi> <mo>±</mo> <msqrt> <msup><mi>b</mi><mn>2</mn></msup> <mo>−</mo> <mn>4</mn><mi>a</mi><mi>c</mi> </msqrt> </mrow> <mrow> <mn>2</mn><mi>a</mi> </mrow> </mfrac> </mrow> <mtext>.</mtext> </math> </p> </body> </html> Please see the following links for more information: https://bugs.documentfoundation.org/show_bug.cgi?id=47414 and http://listarchives.libreoffice.org/global/users/msg03980.html -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
