Category Archives: The WEB

WWW

MathML and La(TeX)

This MathML

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mstyle>
      <mfrac>
        <msqrt>
          <mrow>
            <mfrac>
              <mi>1</mi>

              <mi>2</mi>

            </mfrac>
          </mrow>
        </msqrt>
        <msqrt>
          <msup>
            <mrow>
              <mi>f</mi>
              <mo>(</mo>
              <mrow>
                <mi>x</mi>
                <mo>+</mo>
                <mi>y</mi>
              </mrow>
              <mo>)</mo>
            </mrow>
            <mstyle color="gray">
              <mn>2</mn>
            </mstyle>
          </msup>
        </msqrt>
      </mfrac>
    </mstyle>
    <mfrac>
      <msqrt>
        <mn>1</mn>
      </msqrt>
      <mrow>
        <mn>2</mn>
      </mrow>
    </mfrac>
    <mo>&lang;</mo>
    <mi>&Ropf;</mi>
    <mo>&rang;</mo>
  </mrow>
</math>

will produce this on my Browser

If I have these fonts at

STIX Beta Fonts

And if you use Windows you’ll need to pay heed to this advice for their installation

www.dafont.com/faq

and YES, under Vista/Win7 you really do have to

Select the font files (.ttf, .otf or .fon) then Right-click > Install

Now having started using in the ’80′s and ’90′s, say something like this

\begin{align}
E = mc^2
m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}

\end
{align}

which will produce this

the MathML makes me feel like I should vomit!

“MathML is a low-level specification for describing mathematics as a basis for machine to machine communication”

No sh*t, low level indeed.

Well my Tex would transport to any platform, and I could work on it even with a dumb terminal, i.e. only seeing the result on a printer.

I can type that LaTex example above into my Latex Composer Firefox plugin. As a human I can both create and read such mark up.

If for whatever reason you are playing with MathML, read  Producing MathML with Tralics

The purpose of this paper is to show that it is possible to
translate almost every mathematical formula from LaTeX syntax to XML.
The document you are reading contains a great number of formulas extracted
from the TeXbook, the LaTeX companion, the MathML recommendation, and
translated into XML by Tralics; it is available in Pdf or HTML version.

if you are looking at MathML and wondering. You can grab the code from here. Or vomit.

Oh, and after that, here’s a good spot to help settle that stomach :-)

MathML Software – Converters