# Latex Support

La Te X has been integrated into this site, making it easy to include mathematics in the pages you edit. This is not a standard feature of PmWiki, so it is not covered in the standard documentation on text formatting rules. This page explains how to include La Te X code in the pages you edit and addresses some complications that arise.

You can find more explanations in Original Latex Support (thanks for the La Te X engine to Joe Miller, and his now defunct Effective Randomness wiki). You can find additional features not necessary about La Te X in Advanced Formatting.

The syntax used to produce La Te X input is the same as what you would expect. For example, the formula `⚠ $A\in 2^\omega$`

is produced by the code `$A\in 2^\omega$`

. The usual markup is also provided for display mathematics.

Here some examples of formulas are presented. Press Edit button to see the code.

`$\sqrt{2^\frac{1}{x^2+1}+1}$`

`⚠ $\sqrt{2^\frac{1}{x^2+1}+1}$`

`$A=\left(\begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}\right)$`

`⚠ $A=\left(\begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}\right)$`

- For all {
`⚠ $n\in\mathbb N$`

}:`$$\sum_{i=0}^n i=\frac{n(n+1)}{2}$$`

`⚠ $\displaystyle{\sum_{i=0}^n i=\frac{n(n+1)}{2}}$`

- Integral calculus:
`$$\int_0^{+\infty} \frac{\sin t}{t}\, dt=\frac{\pi}{2}$$`

`⚠ $\displaystyle{\int_0^{+\infty} \frac{\sin t}{t}\, dt=\frac{\pi}{2}}$`

- Inline syntax:
`$$a^2=b$$`

`⚠ $\displaystyle{a^2=b}$`

`\[c=d+d\]`

\[c=d+d\] - Begin/end syntax:
`\begin{align*} x_k&=Ax_{k-1}+Bu_k+w_k,\\ z_k&=Hx_k+v_k, \end{align*}`

\begin{align*} x_k&=Ax_{k-1}+Bu_k+w_k,

z_k&=Hx_k+v_k, \end{align*}**Important**: The begin/end syntax can only be used for formulas that fit one line in the source file (although they may occupy more than one line after compilation).

Some formulas do not work:

`$a^{(N)}$`

provides`⚠ $a^(N)$`

. But you can always use`$a^{\left(N\right)}$`

, which provides`⚠ $a^{\left(N\right)}$`

, or`$a^{\:(N)\:}$`

provides`⚠ $a^{\:(N)\:}$`

.`$[-Y,Y]$`

is not handled well. But you can always use`$ [-Y,Y] $`

, which provides`⚠ $ [-Y,Y] $`

.