LaTeX

· Mathematics · Application software · FAQ on Math-linux · LaTeX equation editor · mathematical symbols ·

Snippets

$\color{orange}t\in R3$

tR3

$\vec t\in R^3$

tR3

Square root

$\lVert\vec a\rVert=\sqrt{a_1^2+a_2^2+\ldots+a_n^2}$

a=a12+a22++an2

Fracture and big brackets

$\phi=\arccos\bigg(\frac{\vec a\cdot\vec b}{\lVert\vec a\rVert\cdot\lVert\vec b\rVert}\bigg)$

ϕ=arccos(abab)

Matrix/array

$\vec c=\vec a+\vec b=\begin{pmatrix}a_1+b_2\\a_2+b_2\\\ldots\\a_n+b_n\end{pmatrix}$

c=a+b=(a1+b2a2+b2an+bn)

$\vec i=\begin{pmatrix}1\\0\\0\end{pmatrix},\vec j=\begin{pmatrix}0\\1 \\0\end{pmatrix},\vec k=\begin{pmatrix}0\\0\\1\end{pmatrix}$

i=(100),j=(010),k=(001)

$\vec i=\begin{array}{}1\\0\\0\end{array},\quad\vec j=\begin{matrix}0\\1 \\0\end{matrix},\quad\vec k=\begin{pmatrix}0\\0\\1\end{pmatrix}$

i=100,j=010,k=(001)

Array with alignment

$\Bigg\{\begin{array}{rcl}100.45&1.44&212.4\\30.32&77.0&99.44\\433.42&787.1&99.441\end{array}\Bigg\}$

{100.451.44212.430.3277.099.44433.42787.199.441}

Sum

$\sum_{j=0}^7j^2\pi$

j=07j2π

Math Calligraphy

$\langle\,\mathcal{hello,\,HELLO}\,\rangle$

hello,HELLO

Dots

$\ldots\,\,\vdots$

Spacing

$x\!y$

xy

$\xy$

xy

$x\,y$

xy

$x\:y$

xy

$x\;y$

xy

$x\quad y$

xy

$x\quad y$

xy

Splitting

$\begin{split}
Area & = \frac{length \times breadth }{2} \\
     & = \frac{1}{2} length \times breadth
\end{split}$
Area=length×breadth2=12length×breadth

Align multiple equations

$\begin{align*}
5x - 1y &=  3 \\
3x + 7y &=  2
\end{align*}$
5x1y=33x+7y=2

Align in columns

$\begin{align*}
y&=x            &  a &=z              &  b&=a+c\\
5x&=y           &  4z&=\frac{4}{2}z   &  z&=y\\
4 + 2x&=1+y     &  q+2&=4+a           &  we&=cd\\
x&=y            &  q &=a              &  c&=a+b\\
\end{align*}$
y=xa=zb=a+c5x=y4z=42zz=y4+2x=1+yq+2=4+awe=cdx=yq=ac=a+b

Centering

$\begin{gather*}
5x^2 - 15y =  8 \\
3x^2 + 9y =  7
\end{gather*}$
5x215y=83x2+9y=7