0

I discovered jqmath library that works very well. but now I have a problem: if I have a formatted text like:

<fmath alttext="√^{2}{4}+{1}/{3}" class="fm-inline">
  <mrow>
    <mrow mtagname="mroot">
      <span class="fm-root fm-inline" style="vertical-align: 0.85em;">
        <mn>2</mn>
      </span>
      <mo class="fm-radic">√</mo>
      <span style="vertical-align: 0.086em;">
        <span class="fm-vert fm-radicand" style="border-top-width: 0.072em;">
          <mn>4</mn>
        </span>
      </span>
    </mrow>
      <mo class="fm-infix">+</mo>
      <span mtagname="mfrac" style="vertical-align: 0em;">
        <span class="fm-vert fm-frac">
          <table>
            <tbody>
              <tr>
                <td class="fm-num-frac fm-inline">
                  <mn>1</mn>
                </td>
              </tr>
              <tr>
                <td class="fm-den-frac fm-inline">
                  <mn>3</mn>
                </td>
              </tr>
            </tbody>
          </table>
        </span>
      </span>
    </mrow>
  </fmath>

can I get or create a SVG file from this.

thanks for help.

buczek
  • 2,011
  • 7
  • 29
  • 40
user6110729
  • 138
  • 1
  • 8

1 Answers1

0

What you have here is MathML (not SVG surely). jqMath can generate MathML, but not convert it to smth else.

If you want to generate SVG from LaTeX, then you should look at MathSVG.

If you really want to generate SVG from MathML, you probably have to stack a couple of things. These can be of interest: MathML to LaTeX and then LaTeX to SVG using MathSVG; another similar question; a tool that's not a web tool but converts MathML to SVG directly.

Community
  • 1
  • 1
YakovL
  • 7,557
  • 12
  • 62
  • 102