md语法-LaTex数学公式篇
LaTex常用语法
$ –> 行内公式
$z = x + y$ –> $z = x + y$
$$ –> 多行公式
$$
x+y = z
x-z = 0
y+z = 3
$$
\[x+y = z
x-z = 0
y+z = 3\]
\ –> 转义字符
$\$$ –> $ $ $
\\ –> 换行
$z = x + y \\ c = a * b$ –> $z = x + y \\ c = a * b$
\quad 空格
$a b$ –> $a b$
$a \ b$ –> $a \ b$
$a \quad b$ –> $a \quad b$
$a \qquad b$ –> $a \qquad b$
_ –> 下标
$a_1$ –> $a_1$
^ –> 上标
$a^1$ –> $a^1$
{} 一组内容
$a_{11} = b^{\frac{1}{2}}$ –> $a_{11} = b^{\frac{1}{2}}$
\cdot 点乘
$z = x \cdot y$ –> $z = x \cdot y$
\times叉乘
$z = x \times y$ –> $z = x \times y$
\div 除以
$z = x \div y$ –> $z = x \div y$
\sqrt 根号
算术平方根
$\sqrt x$ –-> $\sqrt x$
其他
$\sqrt [n]x$ –- > $\sqrt [n]x$
向量
$ \vec{ab} $ –> $ \vec{ab} $
$ \overrightarrow{bc} $ –> $ \overrightarrow{bc} $
$\overleftarrow{DE}$ –> $\overleftarrow{DE}$
\prod连乘
基本连乘
$\prod_a^b$ –> $\prod_a^b$
角标在上边和下边的连乘
$\prod \limits_{i = 1}^n$ –> $\prod \limits_{i = 1}^n$
\sum 连加
基本连加
$\sum _a^b$ –> $\sum _a^b$
角标在上边和下边的连加
$\sum \limits _{i = 1}^n$ –> $\sum \limits _{i = 1}^n$
\int 积分
基本积分
$\int _a^b$ –> $\int _a^b$
正负无穷积分
$\int _{-\infty}^{+\infty}$ –> $\int _{-\infty}^{+\infty}$
\partial 偏导
$\partial x$ –> $\partial x$
\propto 正比于
$a \propto b$ –> $a \propto b$
\overline 上划线
$\overline {A \cdot B + B \cdot C}$ –> $\overline {A \cdot B + B \cdot C}$
\underline 下划线
$\underline {A \cdot B + B \cdot C}$ –> $\underline {A \cdot B + B \cdot C}$
\boxed 边框
$\boxed {x*y=z}$ –> $\boxed {x*y=z}$
$\fbox {x*y=z}$ –> $\fbox {x*y=z}$
\mathbf 加粗
$\mathbf {x*y=z}$ –> $\mathbf {x*y=z}$
\boldsymbol 倾斜加粗
$\boldsymbol {x*y=z}$ –> $\boldsymbol {x*y=z}$
\geq 大于等于
$a \geq b$ –> $a \geq b$
\leq 小于等于
$a \leq b$ –> $a \leq b$
\neq 不等于
$a \neq b$ –> $a \neq b$
子集
$A \subset B$ –> $A \subset B$
$A \not \subset B$ –> $A \not \subset B$
$A \subseteq B$ –> $A \subseteq B$
$A \subsetneq B$ –> $A \subsetneq B$
$A \subseteqq B$ –> $A \subseteqq B$
$A \subsetneqq B$ –> $A \subsetneqq B$
$A \supset B$ –> $A \supset B$
$A \not \supset B$ –> $A \not \supset B$
$A \supseteq B$ –> $A \supseteq B$
$A \supsetneq B$ –> $A \supsetneq B$
$A \supseteqq B$ –> $A \supseteqq B$
$A \supsetneqq B$ –> $A \supsetneqq B$
\overbrace 上括号
$\overbrace{1+2+\cdots+n}^{n个}$ –> $\overbrace{1+2+\cdots+n}^{n个}$
\underbrace 下括号
$\underbrace{a+b+\cdots+z}_{26}$ –>$\underbrace{a+b+\cdots+z}_{26}$
三圆点
$\ldots$ –> $\ldots$
$\cdots$ –> $\cdots$
$\vdots$ –> $\vdots$
$\ddots$ –> $\ddots$
重音符号
$ \hat{x} $ –> $ \hat{x} $
$ \bar{x} $ –> $ \bar{x} $
$ \tilde{x} $ –> $ \tilde{x} $
矩阵
$\begin{matrix}a & b \\c & d \\\end{matrix}$ –> $\begin{matrix}a & b \\ c & d \\ \end{matrix}$
$\begin{bmatrix}a & b \\c & d \\\end{bmatrix}$ –> $\begin{bmatrix}a & b \\ c & d \\ \end{bmatrix}$
$\begin{vmatrix}a & b \\c & d \\\end{vmatrix}$ –> $\begin{vmatrix}a & b \\ c & d \\ \end{vmatrix}$
$\begin{pmatrix}a & b \\c & d \\\end{pmatrix}$ –> $\begin{pmatrix}a & b \\ c & d \\ \end{pmatrix}$
公式组合
$f(x) = \begin{cases} x<3 \\ x>0 \\ \end{cases}$ –> $f(x) = \begin{cases}x<3 \\ x=3 \end{cases}$
拆分单个公式
$$\begin{split} \cos 2x &= \cos^2x - \sin^2x \\ &=2\cos^2x-1 \end{split}$$ –> \(\begin{split} \cos 2x &= \cos^2x - \sin^2x \\\ &=2\cos^2x-1 \end{split}\)
希腊字母

(完)
文字抄自:md语法-LaTex数学公式篇,LaTeX 公式篇