最近更新于 2024-05-06 07:57
希腊字母
大写 | 代码 | 小写 | 代码 |
---|---|---|---|
A | A | α | \alpha |
B | B | β | \beta |
Γ | \Gamma | γ | \gamma |
Δ | \Delta | δ | \delta |
E | E | ϵ | \epsilon |
Z | Z | ζ | \zeta |
H | H | η | \eta |
Θ | \Theta | θ | \theta |
I | I | ι | \iota |
K | K | κ | \kappa |
Λ | \Lambda | λ | \lambda |
M | M | μ | \mu |
N | N | ν | \nu |
Ξ | \Xi | ξ | \xi |
O | O | ο | \omicron |
Π | \Pi | π | \pi |
P | P | ρ | \rho |
Σ | \Sigma | σ | \sigma |
T | T | τ | \tau |
Υ | Υ | υ | \upsilon |
Φ | \Phi | ϕ | \phi |
X | X | χ | \chi |
Ψ | \Psi | ψ | \psi |
Ω | \Omega | ω | \omega |
符号
乘 \times
\times
除 \div
\div
加减 \pm
\pm
减加 \mp
\mp
偏导数 \partial
\partial
小于 \lt
\lt
大于 \gt
\gt
小于等于 \le
\le
大于等于 \ge
\ge
不等于 \ne
\ne
加 \not
否定,如 \not \lt
\not \lt
并集 \cup
\cup
交集 \cap
\cap
子集 subset
\subset
,subseteq
\subsetneq
差集 \setminus
\setminus
非子集 \subsetneq
\subsetneq
父集 \supset
\supset
属于 \in
\in
不属于 \notin
\notin
空集 \emptyset
\emptyset
空 \varnothing
\varnothing
虚数 i、j \imath
\imath
, \jmath
\jmath
异或 \oplus
\oplus
同与 \otimes
\otimes
同或 \odot
\odot
与 \land
\land
或 \lor
\lor
非 \lnot
\lnot
点乘 \cdot
\cdot
平均运算符 \overline{x}
\overline{x}
向量(单)\vec{x}
\vec{x}
向量(多)\overrightarrow{xy}
\overrightarrow{xy}
梯度算子 \nabla
\nabla
空格 \
,比如 a\ b
a\ b
任意 \forall
\forall
存在 \exists
\exists
反斜杠 \backslash
\backslash
\to
\to
\rightarrow
\rightarrow
\leftarrow
\leftarrow
\leftrightarrow
\leftrightarrow
\uparrow
\uparrow
\downarrow
\downarrow
\updownarrow
\updownarrow
\Rightarrow
\Rightarrow
\Leftarrow
\Leftarrow
\Leftrightarrow
\Leftrightarrow
\Uparrow
\Uparrow
\Downarrow
\Downarrow
\Updownarrow
\Updownarrow
长箭头,前面加 long 或 Long,比如 \longrightarrow
\longrightarrow
,\Longrightarrow
\Longrightarrow
\twoheadrightarrow
\twoheadrightarrow
\rightarrowtail
\rightarrowtail
\looparrowright
\looparrowright
\curvearrowright
\curvearrowright
\circlearrowright
\circlearrowright
\Rsh
\Rsh
\multimap
\multimap
\leftrightsquigarrow
\leftrightsquigarrow
\rightsquigarrow
\rightsquigarrow
\leadsto
\leadsto
\nearrow
\nearrow
\searrow
\searrow
\swarrow
\swarrow
\nwarrow
\nwarrow
\nleftarrow
\nleftarrow
\nrightarrow
\nrightarrow
\nLeftarrow
\nLeftarrow
\nRightarrow
\nRightarrow
\nleftrightarrow
\nleftrightarrow
\nLeftrightarrow
\nLeftrightarrow
\dashrightarrow
\dashrightarrow
\dashleftarrow
\dashleftarrow
\leftleftarrows
\leftleftarrows
\leftrightarrows
\leftrightarrows
\twoheadleftarrow
\twoheadleftarrow
\leftarrowtail
\leftarrowtail
\looparrowleft
\looparrowleft
\curvearrowleft
\curvearrowleft
\circlearrowleft
\circlearrowleft
\Lsh
\Lsh
\mapsto
\mapsto
\hookleftarrow
\hookleftarrow
\hookrightarrow
\hookrightarrow
\upharpoonright
\upharpoonright
\upharpoonleft
\upharpoonleft
\downharpoonright
\downharpoonright
\downharpoonleft
\downharpoonleft
\leftharpoonup
\leftharpoonup
\rightharpoonup
\rightharpoonup
\leftharpoondown
\leftharpoondown
\rightharpoondown
\rightharpoondown
\upuparrows
\upuparrows
\downdownarrows
\downdownarrows
\rightrightarrows
\rightrightarrows
\rightleftarrows
\rightleftarrows
\rightrightarrows
\rightrightarrows
\rightleftarrows
\rightleftarrows
\rightleftharpoons
\rightleftharpoons
\leftrightharpoons
\leftrightharpoons
\mapsto
\mapsto
\forall
\forall
\exists
\exists
\top
\top
\bot
\bot
\vDash
\vDash
\star
\star
\ast
\ast
\bullet
\bullet
约等于 \approx
\approx
波浪号 \sim
\sim
\equiv
\equiv
\prec
\prec
无穷 \infty
\infty
\aleph_o
\aleph_o
\aleph_o
\aleph_o
\Im
\Im
\Re
\Re
\ldots
\ldots
\cdots
\cdots
\vdots
\vdots
\ddots
\ddots
\hat x
\hat x
\widehat {xy}
\widehat {xy}
\dot x
\dot x
\ddot x
\ddot x
\dot {\dot x}
\dot {\dot x}
\mathring{U}
\mathring{U}
上下添加公式
\overset{x=9}{=}
\overset{x=9}{=}
\underset{x=\sin\theta}{=}
\underset{x=\sin\theta}{=}
\xlongequal[下方公式]{上方公式}
\xlongequal[下方公式]{上方公式}
上下大括号
\overbrace{a+b+c}^x
\overbrace{a+b+c}^x
a+\underbrace{b+c}_y
a+\underbrace{b+c}_y
上下标
A^m_n
A_n^m
A_n^m
A_n^m
x^2
x^2
a_n
a_n
a_{n+1}
a_{n+1}
A^{B^C}
A^{B^C}
{A^B}^C
{A^B}^C
根号
\sqrt{25}
\sqrt{25}
\sqrt[3]{27}
\sqrt[3]{27}
分式
\frac{a+b}{a-b}
\frac{a+b}{a-b}
\frac{4}{5}
\frac{4}{5}
括号
(), [] 直接使用,{ 和 } 有特殊含义,需要使用 \{
和 \}
表示。
尖括号使用
\langle
\langle
\rangle
\rangle
求和
\sum_{i=1}^n
\sum_{i=1}^n
\sum_{j=0}^k
\sum_{j=0}^k
连乘
\prod_{i=0}^nx
\prod_{i=0}^n
积分
\int_0^x
\int_0^x
\iint_0^x
\iint_0^x
\iiint_0^x
\iiint_0^x
极限
\lim_{x \to \infty}(1 + \frac{1}{x})^x
\lim_{x \to \infty}(1 + \frac{1}{x})^x
换行等号对齐
\begin{aligned}
19&=10+9 \\
&=11+8 \\
&=12+7
\end{aligned}
\begin{aligned}
19&=10+9 \\
&=11+8 \\
&=12+7
\end{aligned}
分类
f(x)=
\begin{cases}
x+1, &x<0\\
0, &x=0\\
2x-1, &x>0
\end{cases}
f(x)=
\begin{cases}
x+1, &x<0\\
0, &x=0\\
2x-1, &x>0
\end{cases}
方程组
\left \{
\begin{array}{l} % l 靠左、c 居中、r 靠右
x+y+z=6 \\
2x-y+z=3 \\
x+y-z=0
\end{array}
\right.
\left \{
\begin{array}{l}
x+y+z=6 \\
2x-y+z=3 \\
x+y-z=0
\end{array}
\right.
多列对齐
\begin{array}{l l} % l 靠左、c 居中、r 靠右
x+y+z=6 & x+y+z=6\\
2x-y+z=3 & 2x-y+z=3 \\
x+y-z=0 & x+y-z=0
\end{array}
\begin{array}{l l} % l 靠左、c 居中、r 靠右
x+y+z=6 & x+y+z=6\\
2x-y+z=3 & 2x-y+z=3 \\
x+y-z=0 & x+y-z=0
\end{array}
矩阵
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\left \{
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right \}
\left \{
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right \}
\left |
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right |
\left |
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right |
\left (
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right )
\left (
\begin{matrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{matrix}
\right )
上面是使用 \left 和 \right 来添加的左右括号,也可以不用这对符号,将 \begin 和 \end 后面的词分别换为 pmatrix、bmatrix、Bmatrix、vmatrix、Vmatrix,分别对应小括号、中括号、大括号、单竖线、双竖线,如:
\begin{pmatrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{pmatrix}
\begin{pmatrix}
1&2&3 \\
4&5&6 \\
7&8&9
\end{pmatrix}
\begin{array} {c c | c} % c 居中,r 右对齐,l 左对齐,竖线为插入竖线的位置
1&2&3 \\
\hline % 插入横线
4&5&6 \\
7&8&9
\end{array}
\begin{array} {c c | c}
1&2&3 \\
\hline
4&5&6 \\
7&8&9
\end{array}
表格
\begin{array}{c|lcr}
n & \text{Left} & \text{Center} & \text{Right} \\
\hline
1 & 2 & 1 & 4 \\
4 & 3 & 2 & 1 \\
1.0 & 2.0 & 3000 & 3\times10^5 \\
\end{array}
\begin{array}{c|lcr}
n & \text{Left} & \text{Center} & \text{Right} \\
\hline
1 & 2 & 1 & 4.0 \\
4 & 3 & 2 & 1 \\
1.0 & 2.0 & 3000 & 3\times10^5 \\
\end{array}
\begin{array}{|c|c|}
\hline
\text{公式1} & \text{公式2} \\
\hline
\begin{aligned}
a &= b + c \\
&= d + e
\end{aligned}
&
\begin{aligned}
f &= g + h \\
&= i + j
\end{aligned} \\
\hline
\end{array}
\begin{array}{|c|c|}
\hline
\text{公式1} & \text{公式2} \\
\hline
\begin{aligned}
a &= b + c \\
&= d + e
\end{aligned}
&
\begin{aligned}
f &= g + h \\
&= i + j
\end{aligned} \\
\hline
\end{array}
字体
黑板粗体
一般用于表示数学和物理学中的向量或集合
\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathbb{abcdefghijklmnopqrstuvwxyz}
\mathbb{abcdefghijklmnopqrstuvwxyz}
正粗体
\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathbf{abcdefghijklmnopqrstuvwxyz}
\mathbf{abcdefghijklmnopqrstuvwxyz}
罗马体
\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathrm{abcdefghijklmnopqrstuvwxyz}
\mathrm{abcdefghijklmnopqrstuvwxyz}
哥特体
\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathfrak{abcdefghijklmnopqrstuvwxyz}
\mathfrak{abcdefghijklmnopqrstuvwxyz}
打印体
\mathtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathtt{abcdefghijklmnopqrstuvwxyz}
\mathtt{abcdefghijklmnopqrstuvwxyz}
手写体
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathcal{abcdefghijklmnopqrstuvwxyz}
\mathcal{abcdefghijklmnopqrstuvwxyz}