How to convert MathML code into LATEX code

  • Context: LaTeX 
  • Thread starter Thread starter PainterGuy
  • Start date Start date
  • Tags Tags
    Code Convert Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
PainterGuy
Messages
938
Reaction score
73
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