How to convert MathML code into LATEX code

  • Context: LaTeX 
  • Thread starter Thread starter PainterGuy
  • Start date Start date
  • Tags Tags
    Code Convert Latex
Click For Summary
SUMMARY

The discussion focuses on converting MathML code into LaTeX code using various tools. The user tested different output options from Scientific Workplace 6 and determined that the "Zip file with MathJax" option maintains document formatting effectively. For converting MathML to LaTeX, the W3C's MathML to LaTeX translator is recommended as a reliable resource for this task.

PREREQUISITES
  • Understanding of MathML syntax and structure
  • Familiarity with LaTeX typesetting
  • Experience using Scientific Workplace 6
  • Basic knowledge of web technologies for accessing online tools
NEXT STEPS
  • Explore the W3C MathML to LaTeX translator tool
  • Learn advanced LaTeX formatting techniques
  • Investigate other MathML rendering options in Scientific Workplace 6
  • Research best practices for converting mathematical notation between formats
USEFUL FOR

Mathematicians, educators, and software developers involved in document preparation and mathematical typesetting will benefit from this discussion.

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

Similar threads

Replies
9
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K