3

I need to convert mathml to image. I tried mathml-image service, but I unable to upgrade python as it needs python 3.4 . So, I dropped trying that way of conversion.

I have knowledge in php, so Is there any php script to do this task? Or some other way of conversion also would be great enough.

For example: Mathml

<math display='block'><mrow><mrow><msub><mo>&#x222b;</mo><mrow><mi>D</mi></mrow></msub><mrow><mo>(</mo><mo>&#x2207;&#x22c5;</mo><mi>F</mi><mo>)</mo></mrow><mi>d</mi><mrow><mi>V</mi></mrow></mrow><mo>=</mo><mrow><msub><mo>&#x222b;</mo><mrow><mo>&#x2202;</mo><mi>D</mi></mrow></msub><mrow><mtext>&#x2009;</mtext><mi>F</mi><mo>&#x22c5;</mo><mi>n</mi></mrow><mi>d</mi><mi>S</mi></mrow></mrow></math>

should be converted to an image like below

enter image description here

Learning
  • 848
  • 1
  • 9
  • 32
  • 2
    What you have tried so far, Modify your question with your code. – Musakkhir Sayyed Aug 19 '15 at 09:25
  • I have given an example of my requirement.. I don't even have an idea to try this in PHP – Learning Aug 19 '15 at 09:30
  • I doubt you'll find something in php but there are various tools out there. Since you already looked a MathJax based tool you might want to check out the official MathJax-node package; there's also a lightweight server wrapper on npm. – Peter Krautzberger Aug 19 '15 at 12:14
  • Refer to [MathJax](https://mathjax.github.io/MathJax-demos-web/mml-chtml.html) – LF00 Oct 11 '19 at 00:28
  • Refer to [mathml-to-image-service](https://mathml-to-image-service.readthedocs.io/en/latest/) – LF00 Oct 11 '19 at 00:48
  • Refer to [this answer](https://tex.stackexchange.com/a/23807/117692) – LF00 Oct 11 '19 at 02:01

0 Answers0