Skip to main content
General improvements
Source Link
siracusa
  • 13.7k
  • 2
  • 34
  • 57

Convert MathML to LaTeX converter?

Here is thean example:

Input:

<math xmlns="http://www.w3.org/1998/Math/MathML"><miMathML">  <mi mathcolor="#FF0000">y</mi><momi> <mo mathcolor="#00FF00">&#x2212;</mo><msub><mimo>  <msub> <mi mathcolor="#0000FF">y</mi><mnmi>  <mn mathcolor="#FFFF00">0</mn><mn> </msub><momsub> <mo mathcolor="#FF00FF">=</mo><momo>  <mo mathcolor="#00FFFF">&#xB1;</mo><mfracmo>  mathcolor="#800000"><mi <mfrac mathcolor="#800000">  <mi mathcolor="#008000">a</mi><mimi>  <mi mathcolor="#000080">b</mi><mi> </mfrac><momfrac> <mo mathcolor="#808000">(</mo><mimo>  <mi mathcolor="#800080">x</mi><momi>  <mo mathcolor="#008080">&#x2212;</mo><msub><mimo> <msub>  <mi mathcolor="#808080">x</mi><mnmi> <mn mathcolor="#400000">0</mn><mn> </msub><momsub>  <mo mathcolor="#004000">)</mo><mo> </math> 

Output:

{\color[rgb]{1.0, 0.0, 0.0}y}  {\color[rgb]{0.0, 1.0, 0.0}-}  {\color[rgb]{0.0, 0.0, 1.0}y}_{\color[rgb]{1.0, 1.0, 0.0}0}  {\color[rgb]{1.0, 0.0, 1.0}=}  {\color[rgb]{0.0, 1.0, 1.0}\pm}  {\color[rgb]{0.5, 0.0, 0.0}\frac{\color[rgb]{0.0, 0.5, 0.0}a}{\color[rgb]{0.0, 0.0, 0.5}b}}  {\color[rgb]{0.5, 0.5, 0.0}(}  {\color[rgb]{0.5, 0.0, 0.5}x}  {\color[rgb]{0.0, 0.5, 0.5}-}  {\color[rgb]{0.5, 0.5, 0.5}x}_{\color[rgb]{0.25, 0.0, 0.0}0}  {\color[rgb]{0.0, 0.25, 0.0})} 

As you can see, I need mathcolor attribute to be translated also. I have found online demo that does this (http://www.wiris.com/editor/demo/en/developers), but I need to run this on many, many examples. Any suggestions how I can do this? I need it to run on windows. Thanks.

MathML to LaTeX converter?

Here is the example:

Input:

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathcolor="#FF0000">y</mi><mo mathcolor="#00FF00">&#x2212;</mo><msub><mi mathcolor="#0000FF">y</mi><mn mathcolor="#FFFF00">0</mn></msub><mo mathcolor="#FF00FF">=</mo><mo mathcolor="#00FFFF">&#xB1;</mo><mfrac mathcolor="#800000"><mi mathcolor="#008000">a</mi><mi mathcolor="#000080">b</mi></mfrac><mo mathcolor="#808000">(</mo><mi mathcolor="#800080">x</mi><mo mathcolor="#008080">&#x2212;</mo><msub><mi mathcolor="#808080">x</mi><mn mathcolor="#400000">0</mn></msub><mo mathcolor="#004000">)</mo></math> 

Output:

{\color[rgb]{1.0, 0.0, 0.0}y}{\color[rgb]{0.0, 1.0, 0.0}-}{\color[rgb]{0.0, 0.0, 1.0}y}_{\color[rgb]{1.0, 1.0, 0.0}0}{\color[rgb]{1.0, 0.0, 1.0}=}{\color[rgb]{0.0, 1.0, 1.0}\pm}{\color[rgb]{0.5, 0.0, 0.0}\frac{\color[rgb]{0.0, 0.5, 0.0}a}{\color[rgb]{0.0, 0.0, 0.5}b}}{\color[rgb]{0.5, 0.5, 0.0}(}{\color[rgb]{0.5, 0.0, 0.5}x}{\color[rgb]{0.0, 0.5, 0.5}-}{\color[rgb]{0.5, 0.5, 0.5}x}_{\color[rgb]{0.25, 0.0, 0.0}0}{\color[rgb]{0.0, 0.25, 0.0})} 

As you can see, I need mathcolor attribute to be translated also. I have found online demo that does this (http://www.wiris.com/editor/demo/en/developers), but I need to run this on many, many examples. Any suggestions how I can do this? I need it to run on windows. Thanks.

Convert MathML to LaTeX

Here is an example:

Input:

<math xmlns="http://www.w3.org/1998/Math/MathML">  <mi mathcolor="#FF0000">y</mi> <mo mathcolor="#00FF00">&#x2212;</mo>  <msub> <mi mathcolor="#0000FF">y</mi>  <mn mathcolor="#FFFF00">0</mn> </msub> <mo mathcolor="#FF00FF">=</mo>  <mo mathcolor="#00FFFF">&#xB1;</mo>   <mfrac mathcolor="#800000">  <mi mathcolor="#008000">a</mi>  <mi mathcolor="#000080">b</mi> </mfrac> <mo mathcolor="#808000">(</mo>  <mi mathcolor="#800080">x</mi>  <mo mathcolor="#008080">&#x2212;</mo> <msub>  <mi mathcolor="#808080">x</mi> <mn mathcolor="#400000">0</mn> </msub>  <mo mathcolor="#004000">)</mo> </math> 

Output:

{\color[rgb]{1.0, 0.0, 0.0}y}  {\color[rgb]{0.0, 1.0, 0.0}-}  {\color[rgb]{0.0, 0.0, 1.0}y}_{\color[rgb]{1.0, 1.0, 0.0}0}  {\color[rgb]{1.0, 0.0, 1.0}=}  {\color[rgb]{0.0, 1.0, 1.0}\pm}  {\color[rgb]{0.5, 0.0, 0.0}\frac{\color[rgb]{0.0, 0.5, 0.0}a}{\color[rgb]{0.0, 0.0, 0.5}b}}  {\color[rgb]{0.5, 0.5, 0.0}(}  {\color[rgb]{0.5, 0.0, 0.5}x}  {\color[rgb]{0.0, 0.5, 0.5}-}  {\color[rgb]{0.5, 0.5, 0.5}x}_{\color[rgb]{0.25, 0.0, 0.0}0}  {\color[rgb]{0.0, 0.25, 0.0})} 

As you can see, I need mathcolor attribute to be translated also. I have found online demo that does this (http://www.wiris.com/editor/demo/en/developers), but I need to run this on many, many examples. Any suggestions how I can do this? I need it to run on windows. Thanks.

Source Link
alan
  • 173
  • 2
  • 7

MathML to LaTeX converter?

Here is the example:

Input:

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathcolor="#FF0000">y</mi><mo mathcolor="#00FF00">&#x2212;</mo><msub><mi mathcolor="#0000FF">y</mi><mn mathcolor="#FFFF00">0</mn></msub><mo mathcolor="#FF00FF">=</mo><mo mathcolor="#00FFFF">&#xB1;</mo><mfrac mathcolor="#800000"><mi mathcolor="#008000">a</mi><mi mathcolor="#000080">b</mi></mfrac><mo mathcolor="#808000">(</mo><mi mathcolor="#800080">x</mi><mo mathcolor="#008080">&#x2212;</mo><msub><mi mathcolor="#808080">x</mi><mn mathcolor="#400000">0</mn></msub><mo mathcolor="#004000">)</mo></math> 

Output:

{\color[rgb]{1.0, 0.0, 0.0}y}{\color[rgb]{0.0, 1.0, 0.0}-}{\color[rgb]{0.0, 0.0, 1.0}y}_{\color[rgb]{1.0, 1.0, 0.0}0}{\color[rgb]{1.0, 0.0, 1.0}=}{\color[rgb]{0.0, 1.0, 1.0}\pm}{\color[rgb]{0.5, 0.0, 0.0}\frac{\color[rgb]{0.0, 0.5, 0.0}a}{\color[rgb]{0.0, 0.0, 0.5}b}}{\color[rgb]{0.5, 0.5, 0.0}(}{\color[rgb]{0.5, 0.0, 0.5}x}{\color[rgb]{0.0, 0.5, 0.5}-}{\color[rgb]{0.5, 0.5, 0.5}x}_{\color[rgb]{0.25, 0.0, 0.0}0}{\color[rgb]{0.0, 0.25, 0.0})} 

As you can see, I need mathcolor attribute to be translated also. I have found online demo that does this (http://www.wiris.com/editor/demo/en/developers), but I need to run this on many, many examples. Any suggestions how I can do this? I need it to run on windows. Thanks.