# LaTeXMathML examples

\$\\$\alpha + \\$\beta = \\$(\alpha + \beta).\$produces$\$\alpha + \$\beta = \$(\alpha + \beta).$ The input
\$\lim_{x\to\infty} f(x) = k \choose r + \frac ab \sum_{n=1}^\infty a_n + \displaystyle{ \left\{ \frac{1}{13} \sum_{n=1}^\infty b_n \right\} }.\$
produces $\lim_{x\to\infty} f(x) = k \choose r + \frac ab \sum_{n=1}^\infty a_n + \displaystyle{ \left\{ \frac{1}{13} \sum_{n=1}^\infty b_n \right\} }.$ Changing \displaystyle to
\textstyle and \$...\$ to <blockquote>\$\displaystyle{ ... }\$</blockquote> gives
$\displaystyle{ \lim_{x\to\infty} f(x) = k \choose r + \frac ab \sum_{n=1}^\infty a_n + \textstyle{ \left\{ \frac{1}{13} \sum_{n=1}^\infty b_n \right\} }.$
The input
<blockquote>\$\begin{eqnarray} x & = & \frac{-7 \pm \sqrt{49 - 24}}{6} \\ & = & -2 \textrm{ or } -\frac13. \end{eqnarray}\$</blockquote>
produces
$\begin{eqnarray} x & = & \frac{-7 \pm \sqrt{49 - 24}}{6} \\ & = & -\frac13 \textrm{ or } -2. \end{eqnarray}$
(LaTeXMathML tries to reduce the column spacing in eqnarrays, but some browsers do not respond, and others over-react.) The input
<blockquote>\$\displaystyle{ f(x) := \left\{\begin{array}{l l} x^2 \sin \frac1x & \textrm{if } x \ne 0, \\ 0 & \textrm{if } x = 0 . \end{array}\right.}\$</blockquote>
produces
$\displaystyle{ f(x) := \left\{\begin{array}{l l} x^2 \sin \frac1x & \textrm{if } x \ne 0, \\ 0 & \textrm{if } x = 0 . \end{array}\right. }$
The input
<blockquote>\$\displaystyle{ A = \left[\begin{array}{c c c} 1-x & 0 & 0 \\ 0 & 1-x & 0 \\ 0 & 0 & 1-x \end{array}\right]. \$</blockquote>
produces
$\displaystyle{ A = \left[\begin{array}{c c c} 1-x & 0 & 0 \\ 0 & 1-x & 0 \\ 0 & 0 & 1-x \end{array}\right]. }$
Large summation signs, etc., without limits can sometimes get too big. For example, the input
\$\sum a_i + \sum_{i=0}^\infty b_i.\$
produces $\sum a_i + \sum_{i=0}^\infty b_i .$ In some browsers, the presence of the second summation sign, with limits, makes the first one too big. Enclosing the first one in braces, as in {\sum a_i}, produces ${\sum a_i} + \sum_{i=0}^\infty b_i ,$ which is arguably better. (This is a bug in LaTeXMathML, but one that would be difficult to correct.)