How to convert MathML code into LATEX code

In summary, the conversation discusses a new program called Scientific Workplace 6 that allows for the creation of zip files with four different options. The speaker has found that the "Zip file with MathJax" option is the best and maintains the formatting of the document. They also ask if there is a way to convert MathML code to math text or LATEX code, and provide a link to a possible solution.
  • #1
PainterGuy
940
69
Hi again,

I'm trying a new program, Scientific Workplace 6, which let's me produce a zip file with four different options as shown below. I just noticed that I could open these zip files in browser and format of the document remains intact. I only tried "Zip file with MathJax". Do you know which option of the four is best or more flexible? EDIT: I tried all the options and it looks like "Zip file with MathJax" is the best and it keeps the format intact and text of document properly aligned.

1588571211758.png


Is there any way to convert the following MathML code into math text or LATEX code? Thank you.

Code:
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mo form="infix">=</mo>
  <munder>
    <mo msimathname="true" form="prefix" movablelimits="true">lim</mo>
    <mrow>
      <mi>s</mi>
      <mo form="infix">&#x2192;</mo>
      <mn>0</mn>
    </mrow>
  </munder>
  <mfrac>
    <mrow>
      <mrow>
        <mo form="prefix" fence="true" stretchy="true" symmetric="true">[</mo>
        <mrow>
          <msup>
            <mrow>
              <mo form="prefix" fence="true" stretchy="true" symmetric="true">(</mo>
              <mrow>
                <mo form="prefix">&#x2212;</mo>
                <mn>1</mn>
                <mo form="infix">+</mo>
                <mfrac>
                  <mi>s</mi>
                  <mroot>
                    <mn>2</mn>
                    <mn>2</mn>
                  </mroot>
                </mfrac>
              </mrow>
              <mo form="postfix" fence="true" stretchy="true" symmetric="true">)</mo>
            </mrow>
            <mn>2</mn>
          </msup>
          <mo form="infix">+</mo>
          <mrow>
            <mo form="prefix" fence="true" stretchy="true" symmetric="true">(</mo>
            <mrow>
              <mo form="prefix">&#x2212;</mo>
              <mn>1</mn>
              <mo form="infix">+</mo>
              <mfrac>
                <mi>s</mi>
                <mroot>
                  <mn>2</mn>
                  <mn>2</mn>
                </mroot>
              </mfrac>
            </mrow>
            <mo form="postfix" fence="true" stretchy="true" symmetric="true">)</mo>
          </mrow>
          <mo>&#x2062;</mo>
          <mrow>
            <mo form="prefix" fence="true" stretchy="true" symmetric="true">(</mo>
            <mrow>
              <mo form="prefix">&#x2212;</mo>
              <mn>2</mn>
              <mo form="infix">+</mo>
              <mfrac>
                <mi>s</mi>
                <mroot>
                  <mn>2</mn>
                  <mn>2</mn>
                </mroot>
              </mfrac>
            </mrow>
            <mo form="postfix" fence="true" stretchy="true" symmetric="true">)</mo>
          </mrow>
        </mrow>
        <mo form="postfix" fence="true" stretchy="true" symmetric="true">]</mo>
      </mrow>
      <mo form="infix">&#x2212;</mo>
      <mrow>
        <mo form="prefix" fence="true" stretchy="true" symmetric="true">[</mo>
        <mrow>
          <msup>
            <mrow>
              <mo form="prefix" fence="true" stretchy="false">(</mo>
              <mrow>
                <mo form="prefix">&#x2212;</mo>
                <mn>1</mn>
              </mrow>
              <mo form="postfix" fence="true" stretchy="false">)</mo>
            </mrow>
            <mn>2</mn>
          </msup>
          <mo form="infix">+</mo>
          <mrow>
            <mo form="prefix" fence="true" stretchy="false">(</mo>
            <mrow>
              <mo form="prefix">&#x2212;</mo>
              <mn>1</mn>
            </mrow>
            <mo form="postfix" fence="true" stretchy="false">)</mo>
          </mrow>
          <mo>&#x2062;</mo>
          <mrow>
            <mo form="prefix" fence="true" stretchy="false">(</mo>
            <mrow>
              <mo form="prefix">&#x2212;</mo>
              <mn>2</mn>
            </mrow>
            <mo form="postfix" fence="true" stretchy="false">)</mo>
          </mrow>
        </mrow>
        <mo form="postfix" fence="true" stretchy="true" symmetric="true">]</mo>
      </mrow>
    </mrow>
    <mi>s</mi>
  </mfrac>
</math>
 
Physics news on Phys.org

1. What is the purpose of converting MathML code into LATEX code?

The purpose of converting MathML code into LATEX code is to make mathematical equations and expressions easier to display and manipulate on different platforms. LATEX is a widely used typesetting language for scientific and technical documents, while MathML is specifically designed for representing mathematical expressions. By converting MathML code into LATEX code, mathematical content can be easily transferred and integrated into LATEX documents.

2. Is there a specific tool or software for converting MathML code into LATEX code?

Yes, there are multiple tools and software available for converting MathML code into LATEX code. Some popular options include MathJax, which is a JavaScript library that can render MathML code into different formats, including LATEX. Other tools like Pandoc and WIRIS can also convert MathML code into LATEX code.

3. Can all MathML code be converted into LATEX code?

Not necessarily. While most MathML code can be converted into LATEX code, there may be some limitations depending on the complexity of the equations and the capabilities of the conversion tool. It is always recommended to check the output of the conversion and make necessary adjustments if needed.

4. Are there any differences between MathML and LATEX notation?

Yes, there are some differences between MathML and LATEX notation. MathML uses a hierarchical structure to represent mathematical expressions, while LATEX uses a linear structure. This means that the same equation may be represented differently in MathML and LATEX. Additionally, LATEX has its own set of commands and symbols that may not directly correspond to those in MathML.

5. Is it possible to convert LATEX code back into MathML code?

Yes, it is possible to convert LATEX code back into MathML code using conversion tools or software. However, as mentioned earlier, there may be some limitations and differences in the notation between the two formats. It is always recommended to check the output and make necessary adjustments if needed.

Similar threads

  • Introductory Physics Homework Help
Replies
9
Views
787
  • Introductory Physics Homework Help
Replies
3
Views
860
  • Introductory Physics Homework Help
Replies
2
Views
800
  • Computing and Technology
Replies
19
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
14
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
279
  • Special and General Relativity
Replies
1
Views
534
  • Engineering and Comp Sci Homework Help
Replies
1
Views
6K
Back
Top