LaTex公式入门
希腊字母
$$
\delta, \lambda\
\Delta, \Lambda\
$$
上下标
$$
a^2, a_1\
x^{y+z}, p_{ij}, p_ij\
x_i, x_{\text i}\
\text{A B}, \rm{A B}\
\text A B, \rm A B\
$$
分式与根式
$$
\frac{1}{2}, \frac 1 2\
\frac 1 {x+y}\
\frac{\dfrac 1 x + 1}{y+1}\
\sqrt 2, \sqrt{x+y}, \sqrt[3]x
$$
普通运算符
$$
+-\
\times, \cdot, \div\
\pm, \mp\
<, \ge, \le, \gg, \ll, \ne, \approx, \equiv\
\cap, \cup, \in, \notin, \subseteq, \subsetneqq, \varnothing\
\forall, \exists, \nexists\
\because, \therefore\
\mathbb R, \R, \Q, \N, \Z_+\
\mathcal F, \mathscr F\
\infty, \partial, \nabla, \propto, \degree\
\sin x, \sec x\
\log_2x, \ln x, \lg x\
\lim_{x \to 0} \frac{x} {\sin x}
$$
大型运算符
$$
\sum, \prod \
\sum_i, \sum_{i=0}^N\
\frac{\sum\limits_{i=1}^n x_i}{\prod\limits_{i=1}^n x_i}\
\int, \iint, \iiint\
\oint, \int_{\infty}^0 f(x)dx
$$
标注符号
$$
\vec z, \overrightarrow {AB}\
\bar x, \overline {AB}
$$
箭头
$$
\leftarrow, \Rightarrow, \Leftrightarrow, \longleftarrow
$$
括号与定界符
$$
(), [], {}\
\lceil, \rceil,\lfloor, \rfloor\
\left(0, \frac 1 a\right]\
\left.\frac {\partial f} {\partial x}\right|_{x=0}
$$
多行公式
$$
\begin{align}
a& = b+c+d\
&=e+f
\end{align}
$$
大括号
$$
f(x) =
\begin{cases}
\sin x, & -n\le x \le n\
0, & \text {其他}
\end{cases}
$$
矩阵
$$
\begin{matrix}
a & b & \cdots & c \
\vdots & \vdots & \ddots & \vdots\
e & f & \cdots & g
\end{matrix}
$$
$$
\begin{bmatrix}
a & b & \cdots & c\
\vdots & \vdots & \ddots & \vdots\
d & e & \cdots & f
\end{bmatrix}
$$
$$
\begin{pmatrix}
a & b & \cdots & c\
\vdots & \vdots & \ddots & \vdots\
d & e & \cdots & f
\end{pmatrix}
$$
$$
\begin{vmatrix}
a & b & \cdots & c\
\vdots & \vdots & \ddots & \vdots\
d & e & \cdots & f
\end{vmatrix}
$$
$$
A, A^\rm{T}
$$