Now you are in the subtree of Misc public knowledge tree. 

MathJax

Created over 13 years ago, updated almost 10 years ago

MathJax Syntax

To add an inline equation wrap your equation in \$ tags.
Stand-alone equations should be wrapped in double \$\$ tags. To have equations numbered use \begin{equation} ... \end{equation}, without \$ tags.

Inline equation:
$ x^2 $

How it shows:
$ x^2 $

Stand-alone equation:
$$ x^2 $$

How it shows:
$$ x^2 $$

A peculiarity to keep in mind. Use
$1\lt 2$ or $1< 2$ (notice space after "<" sign to avoid being interpreted as HTML tag) to produce

$1\lt 2$

Numbered equation:

In equation \eqref{eq:sample}, we find the value of an
interesting integral:

\begin{equation}
  	\int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
  	\label{eq:sample}
	\end{equation}

How it shows:

In equation \eqref{eq:sample}, we find the value of an
interesting integral:

\begin{equation} \int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15} \label{eq:sample} \end{equation}


example of LaTeX table:
$$ \begin{array}{c|lcr} n & \text{Left} & \text{Center} & \text{Right} \\ \hline 1 & 0.24 & 1 & 125 \\ 2 & -1 & 189 & -8 \\ 3 & -20 & 2000 & 1+10i \\ \end{array} $$

and another one:

$$ % outer vertical array of arrays \begin{array}{c} % inner horizontal array of arrays \begin{array}{cc} % inner array of minimum values \begin{array}{c|cccc} \text{min} & 0 & 1 & 2 & 3\\ \hline 0 & 0 & 0 & 0 & 0\\ 1 & 0 & 1 & 1 & 1\\ 2 & 0 & 1 & 2 & 2\\ 3 & 0 & 1 & 2 & 3 \end{array} & % inner array of maximum values \begin{array}{c|cccc} \text{max}&0&1&2&3\\ \hline 0 & 0 & 1 & 2 & 3\\ 1 & 1 & 1 & 2 & 3\\ 2 & 2 & 2 & 2 & 3\\ 3 & 3 & 3 & 3 & 3 \end{array} \end{array} \\ % inner array of delta values \begin{array}{c|cccc} \Delta&0&1&2&3\\ \hline 0 & 0 & 1 & 2 & 3\\ 1 & 1 & 0 & 1 & 2\\ 2 & 2 & 1 & 0 & 1\\ 3 & 3 & 2 & 1 & 0 \end{array} \end{array} $$


Please follow this[1] link to see more examples of equation syntax.
For the full list of capabilities, including equation numbering, defining macros see MathJax documentation [2].

References

  1. TeXSyntax
  2. MathJax documentation