LaTex数学公式汇总
常用数学宏包
\usepackage{amsmath,amsthm,amssymb,amsfonts}%数学公式宏包
希腊字母
vscode自带
LaTex对应字母表
上下标
a*2 % 上标
a_1 % 下标
常用
\begin{equation}
a*2,a_1,x*{x+y} p_{ij},x_{\text i},\text{A B},\rm{A B}
\end{equation}
斜体–直立体
\text 兼容空格 只对第一个字母起作用
\rm 不兼容空格 对后面所有字母起作用
除非{\rm A} B
字母表示变量时用斜体
表示缩写,e,i,j作为虚数单位时用直立体
分式与根式
分式
\frac 1 {x+y}
\frac {\dfrac x+y}{y+1}
根式
\sqrt 2
\sqrt {x+y}
\sqrt[3]{x+y}
运算符
普通运算符
vscode自带
数集 省略号
标注符号
箭头
括号与定界符
多行公式
\begin{align}
\alpha &\cong \beta\\
&=x+y
\end{align}
大括号
$$f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}$$
矩阵
matrix%无
ematrix%方
pmatrix%圆
vmatrix%行列式
LaTex数学符号大全
https://www.caam.rice.edu/~heinken/latex/symbols.pdf