logo

Latex 常用命令

wangzf / 2023-02-26


目录

数学符号

数学模式重音符

符号 code
a^ \hat{a}
aˇ \check{a}
a~ \tilde{a}
a´ \acute{a}
a` \grave{a}
a˙ \dot{a}
a¨ \ddot{a}
a˘ \breve{a}
a¯ \bar{a}
a \vec{a}
A^ \widehat{A}
A~ \widetilde{A}

大小写希腊字母

符号 code 大写符号 Code
α \alpha
β \beta
γ \gamma Γ \Gamma
δ \delta Δ \Delta
ϵ \epsilon
ε \varepsilon
ζ \zeta
η \eta
θ \theta Θ \Theta
ϑ \vartheta
ι \iota
κ \kappa
λ \lambda Λ \Lambda
μ \mu
ν \nu
ξ \xi Ξ \Xi
o o
π \pi Π \Pi
ϖ \varpi
ρ \rho
ϱ \varrho
σ \sigma Σ \Sigma
ς \varsigma
τ \tau
υ \upsilon Υ \Upsilon
ϕ \phi Φ \Phi
φ \varphi
χ \chi
ψ \psi Ψ \Psi
ω \omega Ω \Omega

数学字母

描述 code 符号 备注
正常字母 ABCdef ABCdef
正体字母 \mathrm{ABCdef} ABCdef
粗体字母 \mathbf{ABCdef} ABCdef
斜体字母 \mathit{ABCdef} ABCdef
花体字母-1 \mathcal{ABC} ABC 仅适用于大写字母
花体字母-2 \mathscr{ABC} ABC 仅适用于大写字母
花体字母-3 \mathfrak{ABCdef} ABCdef
空心字母 \mathbb{ABCdef} ABC 仅适用于大写字母
某种字体 \mathsf{ABCdef} ABCdef
某种字体 \mathtt{ABCdef} ABCdef
某种字体 \mathnormal{ABCdef} \mathnormal12345 存在问题

矩阵

`$$\begin{matrix}
1 & 0 \\
0 & 1
\end{matrix}$$`

1001

`$$\begin{bmatrix}
1 & 0 \\
0 & 1
\end{bmatrix}$$`

[1001]

`$$\begin{Bmatrix}
1 & 0 \\
0 & 1
\end{Bmatrix}$$`

{1001}

等号对齐

`$$\begin{align}
f(x) 
&= (x + 1)^{2} \\
&= x^{2} + 2x + 1
\end{align}$$`

f(x)=(x+1)2=x2+2x+1

方程组

`$$f(x) = \begin{cases}
0, x > 0, \\
1, x \leq 0
\end{cases}$$`

f(x)={0,x>0,1,x0

`$$\begin{cases}
x + 1 = 0 \\
x + 2 = 1
\end{cases}$$`

{x+1=0x+2=1

开根号

`$$\sqrt{x}$$`

x

`$$\sqrt[3]{2}$$`

23

上下线、括号

`$$\overline{m+n}$$`

m+n¯

`$$\underline{m+n}$$`

m+n_

`$$\underbrace{ a + b + \cdots + z }_{26}$$`

a+b++z26

`$$\vec a$$`

a

`$$\overrightarrow{AB}$$`

AB

`$1\frac{1}{2}$`

112

二元关系符

普通二元关系符

你可以在下述命令的前面加上 \not 来得到其否定形式

符号 code
< <
> >
= =
\neq
\leq
\geq
\equiv
\ll
\gg
\doteq
\prec
\preceq
\succ
\succeq
\sim
\simeq
\subset
\subseteq
\supset
\supseteq
\sqsubset
\sqsubseteq
\sqsupset
\sqsupseteq
\cong
\Join
\bowtie
\in
\notin
\ni
\propto
\vdash
\dashv
\models
\mid
\parallel
\perp
\smile
\frown
\asymp
: :

AMS 二元关系符

code 符号
\leqslant
\geqslant
\lll
\ggg
\lesseqgtr
\gtreqless
\thicksim
\thickapprox
\backsim
\therefore
\because
\varpropto

运算符

二元运算符

符号 code
+ +
-
× \times
\cdot
÷ \div
\setminus
± \pm
\mp
\oplus
\ominus
\otimes
\odot
\oslash
\star
\ast
\circ
\bullet
\diamond
\triangleleft
\triangleright
\bigtriangleup
\bigtriangledown
\lhd
\rhd
\unlhd
\unrhd

大尺寸运算符

符号 code
\sum
\prod
\coprod
\int
\oint
\bigcup
\bigcap
\bigsqcup
\bigvee
\bigwedge
\bigoplus
\bigotimes
\bigodot
\biguplus

定界符

符号 code
( (
) )
[ [
] ]
{ {
} }
\uparrow
\downarrow
\updownarrow
\Uparrow
\Downarrow
\Updownarrow
\langle
\rangle
| | or \vert
\| or \Vert
\lfloor
\rfloor
\lceil
\rceil

大尺寸定界符

符号 code
\lgroup
\rgroup
\lmoustache
\rmoustache
\arrowvert
\Arrowvert
\bracevert

箭头

符号 code
\leftarrow
\rightarrow
\leftrightarrow
\Leftarrow
\Rightarrow
\Leftrightarrow
\uparrow
\downarrow

其他数学符号

符号 code
\dots
\cdots
\vdots
\ddots
\forall
\exists
\partial
'
\prime
\emptyset
\infty
\nabla
\triangle
\bot
\top
\angle
¬ \neg or \lnot

参考