Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

LaTeX符号

  |  

摘要: 本文记录常用的 LaTeX 符号,在写文章的时候可以直接复制粘贴使用。

【对数据分析、人工智能、金融科技、风控服务感兴趣的同学,欢迎关注我哈,阅读更多原创文章】
我的网站:潮汐朝夕的生活实验室
我的公众号:潮汐朝夕
我的知乎:潮汐朝夕
我的github:FennelDumplings
我的leetcode:FennelDumplings


带帽

带帽形式 显示
\hat{a} ˆa
\check{a} ˇa
\tilde{a} ˜a
\grave{a} ˊa
\dot{a} ˙a
\ddot{a} ¨a
\bar{a} ˉa
\vec{a} a
\widehat{a} ˆa
\acute{a} ˊa
\breve{a} ˘a
\widetilde{a} ˜a
\overset{\frown}{AB} AB

希腊字母

希腊字母 显示 大写希腊字母 显示
\alpha α A A
\beta β B B
\gamma γ \Gamma Γ
\delta δ \Delta Δ
\epsilon ϵ E E
\varepsilon ε
\zeta ζ Z Z
\eta η H H
\theta θ \Theta Θ
\vartheta ϑ
\iota ι I I
\kappa κ K K
\lambda λ \Lambda Λ
\mu μ M M
\nu ν N N
\xi ξ \Xi Ξ
\omicron ο O O
\pi π \Pi Π
\varpi ϖ
\rho ρ P P
\varrho ϱ
\sigma σ \Simga Σ
\varsigma ς
\tau τ T T
\upsilon υ \Upsilon Υ
\phi ϕ \Phi Φ
\chi χ X X
\psi ψ \Psi Ψ
\omega ω \Omega Σ

二元关系

二元关系 显示 否定形式 显示
< < \not<
> > \not>
= = \not= 或 \neq 或 \ne
\leq 或 \le \not\leq 或 \not\le
\geq 或 \ge \notgeq 或 \not\ge
\equiv \not\equiv
\ll \not\ll ≪̸
\gg \not\gg ≫̸
\doteq \not\doteq ≐̸
\prec \not\prec
\succ \not\succ
\sim \not\sim
\preceq \not\preceq ⪯̸
\succeq \not\succeq ⪰̸
\simeq \not\simeq
\subset \not\subset
\supset \not\supset
\approx \not\approx
\subseteq \not\subseteq
\supseteq \not\supseteq
\cong \not\cong
\sqsubset \not\sqsubset ⊏̸
\sqsupset \not\sqsupset ⊐̸
\Join \not\Join ⋈̸
\sqsubseteq \not\sqsubseteq
\sqsupseteq \not\sqsupseteq
\bowtie \not\bowtie ⋈̸
\in \not\in
\ni 或 \owns \not\ni 或 \not\owns
\propto \not\propto ∝̸
\vdash \not\vdash
\dashv \not\dashv ⊣̸
\models \not\models
\mid \not\mid
\parallel \not\parallel
\perp \not\perp ⊥̸
\smile \not\smile ⌣̸
\frown \not\frown ⌢̸
\asymp \not\asymp

二元运算符

二元运算符 显示
+ +
- -
\pm ±
\mp
\triangleleft
\triangleright
\times ×
\setminus
\star
\cup
\cap
\ast
\sqcup
\sqcap
\circ
\vee 或 \lor
\wedge 或 \land
\bullet
\oplus
\ominus
\diamond
\odot
\oslash
\uplus
\otimes
\bigcirc
\amalg ⨿
\bigtriangleup
\bigtriangledown
\lhd
\rhd
\unlhd
\unrhd
\dagger
\ddagger
\wr

大运算符

大运算符 显示
\sum
\bigcup
\bigcap
\bigvee
\bigwedge
\prod
\coprod
\bigsqcup
\biguplus
\int
\oint
\bigodot
\bigoplus
\bigotimes

括号

注意,以下左边一列是多行公式的情况,如果是单行公式,\{\} 要改为 \\{\\}

括号形式 显示
(\frac{b}{a}) (ba)
\left(\frac{b}{a}\right) (ba)
\left[\frac{b}{a}\right] [ba]
\left{\frac{b}{a}\right} {ba}
\left\langle\frac{b}{a}\right\rangle ba
\left|\frac{b}{a}\right| |ba|
\left\|\frac{b}{a}\right\| ba
\left\lfloor\frac{b}{a}\right\rfloor ba
\left\lceil\frac{b}{a}\right\rceil ba
\left/\frac{b}{a}\right\backslash /ba\
\left\uparrow\frac{b}{a}\right\downarrow ba
\left\Uparrow\frac{b}{a}\right\Downarrow ba
\left[\frac{b}{a}\right) [ba)
\left\langle\frac{b}{a}\right| ba|
\left{\frac{b}{a}\right. {ba
\left.\frac{b}{a}\right} ba}
括号大小 显示
\big(\frac{b}{a}\big) (ba)
\Big(\frac{b}{a}\Big) (ba)
\bigg(\frac{b}{a}\bigg) (ba)
\Bigg(\frac{b}{a}\Bigg) (ba)

大定界符

大定界符 显示
\lgroup
\rgroup
\lmoustache
\arrowvert
\Arrowvert
\bracevert
\rmoustache

范数

范数 显示
\Vert\mathbf{x}\Vert x
\left\|\mathbf{x}\right\| x
\big\|\mathbf{x}\big\| x
\Big\|\mathbf{x}\Big\| x
\bigg\|\mathbf{x}\bigg\| x
\Bigg\|\mathbf{x}\Bigg\| x

数学字体字母

数学字母 显示
\mathrm{ABCDEabcde12345} ABCDEabcde12345
\mathbf{ABCDEabcde12345} ABCDEabcde12345
\mathbb{ABCDEabcde12345} ABCDEabcde12345
\mathcal{ABCDEabcde12345} ABCDEabcde12345
\mathscr{ABCDEabcde12345} ABCDEabcde12345
\mathfrak{ABCDEabcde12345} ABCDEabcde12345
\mathit{ABCDEabcde12345} ABCDEabcde12345

其它符号

其它符号 显示
\dots
\cdots
\vdots
\ddots
\hbar
\imath ı
\jmath ȷ
\ell
\Re
\Im
\aleph
\wp
\forall
\exists
\mho
\partial
\prime
\emptyset
\infty
\nabla
\triangle
\Box
\Diamond
\bot
\top
\angle
\surd
\diamondsuit
\heartsuit
\clubsuit
\spadesuit
\neg 或 \lnot ¬
\flat
\natural
\sharp
\S §
\% %
\$ $

箭头

箭头 效果
\uparrow
\downarrow
\Uparrow
\Downarrow
\updownarrow
\Updownarrow
\rightarrow
\leftarrow
\Rightarrow
\Leftarrow
\leftrightarrow
\Leftrightarrow
\longrightarrow
\longleftarrow
\Longrightarrow
\Longleftarrow
\mapsto
\longmapsto
\hookleftarrow
\hookrightarrow
\leftharpoonup
\rightharpoonup
\leftharpoondown
\rightharpoondown
\rightleftharpoons
\leadsto
\nearrow
\searrow
\swarrow
\nwarrow
\nleftarrow
\nrightarrow
\nLeftarrow
\nRightarrow
\nleftrightarrow
\nLeftrightarrow
\dashrightarrow
\dashleftarrow
\leftleftarrows
\leftrightarrows
\Lleftarrow
\twoheadleftarrow
\leftarrowtail
\looparrowleft
\leftrightharpoons
\curvearrowleft
\circlearrowleft
\Lsh
\upharpoonleft
\downharpoonleft
\upuparrows
\multimap
\leftrightsquigarrow
\rightrightarrows
\rightleftarrows
\twoheadrightarrow
\rightarrowtail
\looparrowright
\rightleftharpoons
\curvearrowright
\circlearrowright
\Rsh
\downdownarrows
\upharpoonright
\downharpoonright
\rightsquigarrow
\longleftrightarrow
\Longleftrightarrow
\iff

箭头上方数字

1
X\stackrel{F}{\longrightarrow}Y
XFY

矩阵

  • matrix
1
\begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix}
0110
  • pmatrix
1
\begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}
(0ii0)
  • bmatrix
1
\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}
[0110]
  • Bmatrix
1
\begin{Bmatrix} 1 & 0 \\ 0 & -1 \end{Bmatrix}
{1001}
  • vmatrix
1
\begin{vmatrix} a & b \\ c & d \end{vmatrix}
|abcd|
  • Vmatrix
1
\begin{Vmatrix} i & 0 \\ 0 & -i \end{Vmatrix}
i00i
  • array
1
2
3
4
5
6
7
8
\begin{equation}        % 开始数学环境
\left( % 左括号
\begin{array}{ccc} % 该矩阵一共3列,每一列都居中放置
a11 & a12 & a13 \\ % 第一行元素
a21 & a22 & a23 \\ % 第二行元素
\end{array}
\right) % 右括号
\end{equation}
(a11a12a13a21a22a23)
  • 带省略号
1
2
3
4
5
6
7
8
9
10
11
\begin{equation}        
\left[
\begin{array}{cccccc}
1 & 1 & 0 & 0 & \cdots & 0 \\
1 & 1 & 1 & 0 & \cdots & 0 \\
0 & 1 & 1 & 1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \ddots & \ddots& \vdots \\
0 & 0 & 0 & \cdots & 1 & 1 \\
\end{array}
\right]
\end{equation}
[11000111000111000011]

大公式

分段函数

1
2
3
4
5
6
result[i] = \left\{
\begin{array}{**lr**}
A[\frac{i}{2}] \quad (i = 2k) \\
B[\frac{i - 1}{2}] \quad (i = 2k + 1) \\
\end{array}
\right.
result[i]={A[i2](i=2k)B[i12](i=2k+1)

最优化

1
2
3
4
5
\begin{array}{**ll**}
& min & \vec{C}\vec{x} \\
& s.t. & A\vec{x} = \vec{b} \\
& & \vec{x} \geq 0 \\
\end{array}
minCxs.t.Ax=bx0

多行等号对齐

1
2
3
4
\begin{aligned}
y &= x^{2} + 4x + 4\\
&= (x+2)^{2}\\
\end{aligned}
y=x2+4x+4=(x+2)2

积分

  • 二重积分
1
\iint_{D}f(x,y)dxdy
Df(x,y)dxdy
  • 三重积分
1
\iiint\limits_{\Omega}f(x,y,z)dxdydz
Ωf(x,y,z)dxdydz
  • 闭合曲线积分
1
\oint\limits_{L} f(x, y)dxdy
Lf(x,y)dxdy
  • 闭合曲面积分
1
\int\kern{-8pt}\int\limits_{\Sigma} \kern{-23mu} \bigcirc \bf\;B\cdot\mathrm{d}S=0
ΣBdS=0

横大括号

1
(x+1)^{m+n+1} = \underbrace{(x+1)(x+1)\cdots(x+1)}_{m+n+1个}
(x+1)m+n+1=(x+1)(x+1)(x+1)m+n+1
1
(x+1)^{m+n+1} = \overbrace{(x+1)(x+1)\cdots(x+1)}^{m+n+1个}
(x+1)m+n+1=m+n+1(x+1)(x+1)(x+1)

多行下标

1
dp[i][j] = 1 + \max\limits_{\substack{k< i,A[k] < A[i]\\l< j , B[l] < B[j]\\A[k] = B[l]}}dp[k][l]
dp[i][j]=1+max
Share