Testing LaTeX

April 7, 2008 by afwings

Here’s an equation: m = \left( {\frac{{x_1 + x_2 }}{2},\,\,\frac{{y_1 + y_2 }}{2}} \right)

Here’s another one: r = 3{\mathop{\rm cis}\nolimits} \frac{\pi }{4}.

Limit notation with the Texvc translator: \underset{x\to \infty }{\mathop{\lim }}\,\frac{1}{x}=0. This one works fine in both directions.

MT’s LaTeX translators, one by one:

  • TeX — AMS-LaTeX:
    \sqrt {{a^2} + {b^2}} \,\,\,\,\,\mathop {\lim }\limits_{x \to \infty } \frac{1}{0}\,\,\,\,\, \left( {\begin{array}{*{20}{c}} {{a_{11}}} & {{a_{12}}}  \\ {{a_{21}}} & {{a_{22}}}  \\ \end{array} } \right)\,\,\,\,\,\sum\limits_{i = 1}^n {{A_i}{B_i}}
  • TeX — LaTeX 2.09 and later:
    \sqrt {{a^2} + {b^2}} \,\,\,\,\,\mathop {\lim }\limits_{x \to \infty } \frac{1}{0}\,\,\,\,\, \\left( {\begin{array}{*{20}{c}} {{a_{11}}} & {{a_{12}}}  \\ {{a_{21}}} & {{a_{22}}}  \\ \end{array}} \right)\,\,\,\,\,\sum\limits_{i = 1}^n {{A_i}{B_i}}
  • Texvc:
    \sqrt{{{a}^{2}}+{{b}^{2}}}\,\,\,\,\,\underset{x\to \infty }{\mathop{\lim }}\,\frac{1}{0}\,\,\,\,\, \left( \begin{matrix} {{a}_{11}} & {{a}_{12}} \\ {{a}_{21}} & {{a}_{22}} \\ \end{matrix} \right)\,\,\,\,\,\sum\limits_{i=1}^{n}{{{A}_{i}}{{B}_{i}}}

These look fine here, except for the matrix with the AMS-LaTeX & plain LaTeX translators. Once any part of the equation does not parse, it does not display any of it (which sort of makes sense). For this reason, and for input compatibility with MathType, we should recommend the Texvc one. It’s clear from this test that the math plugin used by wordpress.com is WP LaTeX.