【收藏必备】LaTeX符号指令大全(Symbols & Command)


作者:小猪快跑

基础数学&计算数学,从事优化领域7年+,主要研究方向:MIP求解器、整数规划、随机规划、智能优化算法

如有错误,欢迎指正。如有更好的算法,也欢迎交流!!!——@小猪快跑

相关文献

操作符(Operators)

SymbolCommandSymbolCommandSymbolCommand
± \pm ±\pm ∓ \mp \mp × \times ×\times
÷ \div ÷\div ⋅ \cdot \cdot ∗ \ast \ast
⋆ \star \star † \dagger \dagger ‡ \ddagger \ddagger
⨿ \amalg ⨿\amalg ∩ \cap \cap ∪ \cup \cup
⊎ \uplus \uplus ⊓ \sqcap \sqcap ⊔ \sqcup \sqcup
∨ \vee \vee ∧ \wedge \wedge ⊕ \oplus \oplus
⊖ \ominus \ominus ⊗ \otimes \otimes ∘ \circ \circ
∙ \bullet \bullet ⋄ \diamond \diamond ⊲ \lhd \lhd
⊳ \rhd \rhd ⊴ \unlhd \unlhd ⊵ \unrhd \unrhd
⊘ \oslash \oslash ⊙ \odot \odot ◯ \bigcirc \bigcirc
◃ \triangleleft \triangleleft ◊ \Diamond \Diamond △ \bigtriangleup \bigtriangleup
▽ \bigtriangledown \bigtriangledown □ \Box \Box ▹ \triangleright \triangleright
∖ \setminus \setminus ≀ \wr \wr x \sqrt{x} x \sqrt{x}
x ∘ x^{\circ} xx^{\circ} ▽ \triangledown \triangledown x n \sqrt[n]{x} nx \sqrt[n]{x}
a x a^x axa^x a x y z a^{xyz} axyza^{xyz} a x a_x axa_x

关系符(Relations)

SymbolCommandSymbolCommandSymbolCommand
≤ \le \le ≥ \ge \ge ≠ \neq =\neq
∼ \sim \sim ≪ \ll \ll ≫ \gg \gg
≐ \doteq \doteq ≃ \simeq \simeq ⊂ \subset \subset
⊃ \supset \supset ≈ \approx \approx ≍ \asymp \asymp
⊆ \subseteq \subseteq ⊇ \supseteq \supseteq ≅ \cong \cong
⌣ \smile \smile ⊏ \sqsubset \sqsubset ⊐ \sqsupset \sqsupset
≡ \equiv \equiv ⌢ \frown \frown ⊑ \sqsubseteq \sqsubseteq
⊒ \sqsupseteq \sqsupseteq ∝ \propto \propto ⋈ \bowtie \bowtie
∈ \in \in ∋ \ni \ni ≺ \prec \prec
≻ \succ \succ ⊢ \vdash \vdash ⊣ \dashv \dashv
⪯ \preceq \preceq ⪰ \succeq \succeq ⊨ \models \models
⊥ \perp \perp ∥ \parallel \parallel
∣ \mid \mid ≏ \bumpeq \bumpeq

只要在符号前加上 “not”,或者在 “not ”和单词之间加一个 “n”,就可以构成这些关系中许多关系的否定。下面是几个例子,还有许多其他的否定关系;它也适用于许多其他关系。

SymbolCommandSymbolCommandSymbolCommand
∤ \nmid \nmid ≰ \nleq \nleq ≱ \ngeq \ngeq
≁ \nsim \nsim ≆ \ncong \ncong ∦ \nparallel \nparallel
≮ \not< <\not< ≯ \not> >\not> ≠ \not= =\not= or \neq or \ne
≰ \not\le \not\le ≱ \not\ge \not\ge ≁ \not\sim \not\sim
≉ \not \approx \not\approx ≇ \not\cong \not\cong ≢ \not\equiv \not\equiv
∦ \not\parallel \not\parallel ≮ \nless \nless ≯ \ngtr \ngtr
⪇ \lneq \lneq ⪈ \gneq \gneq ⋦ \lnsim \lnsim
≨ \lneqq \lneqq ≩ \gneqq \gneqq

希腊字母(Greek Letters)

小写(Lowercase Letters)

SymbolCommandSymbolCommandSymbolCommandSymbolCommand
α \alpha α\alpha β \beta β\beta γ \gamma γ\gamma δ \delta δ\delta
ϵ \epsilon ϵ\epsilon ε \varepsilon ε\varepsilon ζ \zeta ζ\zeta η \eta η\eta
θ \theta θ\theta ϑ \vartheta ϑ\vartheta ι \iota ι\iota κ \kappa κ\kappa
λ \lambda λ\lambda μ \mu μ\mu ν \nu ν\nu ξ \xi ξ\xi
π \pi π\pi ϖ \varpi ϖ\varpi ρ \rho ρ\rho ϱ \varrho ϱ\varrho
σ \sigma σ\sigma ς \varsigma ς\varsigma τ \tau τ\tau υ \upsilon υ\upsilon
ϕ \phi ϕ\phi φ \varphi φ\varphi χ \chi χ\chi ψ \psi ψ\psi
ω \omega ω\omega

大写(Capital Letters)

SymbolCommandSymbolCommandSymbolCommandSymbolCommand
Γ \Gamma Γ\Gamma Δ \Delta Δ\Delta Θ \Theta Θ\Theta Λ \Lambda Λ\Lambda
Ξ \Xi Ξ\Xi Π \Pi Π\Pi Σ \Sigma Σ\Sigma Υ \Upsilon Υ\Upsilon
Φ \Phi Φ\Phi Ψ \Psi Ψ\Psi Ω \Omega Ω\Omega

箭头(Arrows)

SymbolCommandSymbolCommand
← \gets \gets → \to \to
← \leftarrow \leftarrow ⇐ \Leftarrow \Leftarrow
→ \rightarrow \rightarrow ⇒ \Rightarrow \Rightarrow
↔ \leftrightarrow \leftrightarrow ⇔ \Leftrightarrow \Leftrightarrow
↦ \mapsto \mapsto ↩ \hookleftarrow \hookleftarrow
↼ \leftharpoonup \leftharpoonup ↽ \leftharpoondown \leftharpoondown
⇌ \rightleftharpoons \rightleftharpoons ⟵ \longleftarrow \longleftarrow
⟸ \Longleftarrow \Longleftarrow ⟶ \longrightarrow \longrightarrow
⟹ \Longrightarrow \Longrightarrow ⟷ \longleftrightarrow \longleftrightarrow
⟺ \Longleftrightarrow \Longleftrightarrow ⟼ \longmapsto \longmapsto
↪ \hookrightarrow \hookrightarrow ⇀ \rightharpoonup \rightharpoonup
⇁ \rightharpoondown \rightharpoondown ⇝ \leadsto \leadsto
↑ \uparrow \uparrow ⇑ \Uparrow \Uparrow
↓ \downarrow \downarrow ⇓ \Downarrow \Downarrow
↕ \updownarrow \updownarrow ⇕ \Updownarrow \Updownarrow
↗ \nearrow \nearrow ↘ \searrow \searrow
↙ \swarrow \swarrow ↖ \nwarrow \nwarrow
A B → \overrightarrow{AB} AB \overrightarrow{AB} A B ← \overleftarrow{AB} AB \overleftarrow{AB}
A B ↔ \overleftrightarrow{AB} AB \overleftrightarrow{AB}

(对于那些讨厌输入长串字母的人,可以用 \iff 和 \implies 分别代替 \Longleftrightarrow 和 \Longrightarrow)。

点(Dots)

SymbolCommandSymbolCommand
⋅ \cdot \cdot ⋮ \vdots \vdots
… \dots \dots ⋱ \ddots \ddots
⋯ \cdots \cdots\iddots

上标(Accents)

SymbolCommandSymbolCommandSymbolCommand
x ^ \hat{x} x^\hat{x} x ˇ \check{x} xˇ\check{x} x ˙ \dot{x} x˙\dot{x}
x ˘ \breve{x} x˘\breve{x} x ˊ \acute{x} xˊ\acute{x} x ¨ \ddot{x} x¨\ddot{x}
x ˋ \grave{x} xˋ\grave{x} x ~ \tilde{x} x~\tilde{x} x ˚ \mathring{x} x˚\mathring{x}
x ˉ \bar{x} xˉ\bar{x} x ⃗ \vec{x} x \vec{x}

在 i 和 j 上使用重音时,可以使用 \imath 和 \jmath 来防止点干扰重音:

SymbolCommandSymbolCommand
ȷ ⃗ \vec{\jmath} \vec{\jmath} ı ~ \tilde{\imath} ~\tilde{\imath}

\tilde 和 \hat 有很宽的版本,可以让你突出表达:

SymbolCommandSymbolCommand
7 + x ^ \widehat{7+x} 7+x \widehat{7+x} a b c ~ \widetilde{abc} abc \widetilde{abc}

其他(Others)

SymbolCommandSymbolCommandSymbolCommand
∞ \infty \infty △ \triangle \triangle ∠ \angle \angle
ℵ \aleph \aleph ℏ \hbar \hbar ı \imath \imath
ȷ \jmath \jmath ℓ \ell \ell ℘ \wp \wp
ℜ \Re \Re ℑ \Im \Im ℧ \mho \mho
′ \prime \prime ∅ \emptyset \emptyset ∇ \nabla \nabla
√ \surd \surd ∂ \partial \partial ⊤ \top \top
⊥ \bot \bot ⊢ \vdash \vdash ⊣ \dashv \dashv
∀ \forall \forall ∃ \exists \exists ¬ \neg ¬\neg
♭ \flat \flat ♮ \natural \natural ♯ \sharp \sharp
\ \backslash \\backslash □ \Box \Box ◊ \Diamond \Diamond
♣ \clubsuit \clubsuit ♢ \diamondsuit \diamondsuit ♡ \heartsuit \heartsuit
♠ \spadesuit \spadesuit ⋈ \Join \Join ■ \blacksquare \blacksquare
♢ \diamondsuit \diamondsuit R \mathbb{R} R\mathbb{R} LaTeX \LaTeX LATEX\LaTeX
♡ \heartsuit \heartsuit    ⟹    \implies \implies ∪ \cup \cup
§ \S §\S ¶ \P \P ⊩ \Vdash \Vdash
✓ \checkmark \checkmark ∈ \in \in ⊨ \vDash \vDash
★ \bigstar \bigstar □ \square \square

命令符(Command Symbols)

SymbolCommandSymbolCommandSymbolCommandSymbolCommand
\textdollar or $ & \& && % \% %% # \# ##
_ \_ __ { \{ {{ } \} }} \ \backslash \\backslash

括号符号(Bracketing Symbols)

SymbolCommandSymbolCommandSymbolCommand
{ \{ {{ } \} }} ∣ | |
\ \backslash \\backslash ⌊ \lfloor \lfloor ⌋ \rfloor \rfloor
⌈ \lceil \lceil ⌉ \rceil \rceil ⟨ \langle \langle
⟩ \rangle \rangle

您可能会注意到,如果使用其中任何一个来排版垂直较大的表达式,比如

(\frac{a}{x} )^2

得到的表达式的括号的大小不对
( a x ) 2 (\frac{a}{x} )^2 (xa)2
如果我们把\left和\right放在相关的括号前,我们会得到一个更漂亮的表达式:
\left(\frac{a}{x} \right)^2 会得到
( a x ) 2 \left(\frac{a}{x} \right)^2 (xa)2

SymbolCommand
f ( x ) = { x 2 if  x ≥ 0 x if  x < 0 f(x) = \begin{cases} x^2 &\text{if } x \ge 0 \\ x &\text{if } x < 0 \end{cases} f(x)={x2xif x0if x<0f(x) = \begin{cases} x^2 &\text{if } x \ge 0 \\ x &\text{if } x < 0 \end{cases}
⌈ x y ⌉ \left\lceil\frac{x}{y}\right\rceil yx\left\lceil\frac{x}{y}\right\rceil
⌊ x y ⌋ \left\lfloor\frac{x}{y}\right\rfloor yx\left\lfloor\frac{x}{y}\right\rfloor
a 0 + a 1 + a 2 + ⋯ + a n ⏟ x \underbrace{a_0+a_1+a_2+\cdots+a_n}_{x} x a0+a1+a2++an\underbrace{a_0+a_1+a_2+\cdots+a_n}_{x}
a 0 + a 1 + a 2 + ⋯ + a n ⏞ x \overbrace{a_0+a_1+a_2+\cdots+a_n}^{x} a0+a1+a2++an x\overbrace{a_0+a_1+a_2+\cdots+a_n}^{x}

\left和\right也可以用来调整下列符号的大小:

SymbolCommandSymbolCommandSymbolCommand
↑ \uparrow \uparrow ↓ \downarrow \downarrow ↕ \updownarrow \updownarrow
⇑ \Uparrow \Uparrow ⇓ \Downarrow \Downarrow ⇕ \Updownarrow \Updownarrow
SymbolCommandSymbolCommandSymbolCommand
∑ ∑ \sum \textstyle\sum ∑∑\sum ∫ ∫ \int \textstyle\int ∫∫\int ∮ ∮ \oint \textstyle\oint ∮∮\oint
∏ ∏ \prod \textstyle\prod ∏∏\prod ∐ ∐ \coprod \textstyle\coprod ∐∐\coprod ⋂ ⋂ \bigcap \textstyle\bigcap ⋂⋂\bigcap
⋃ ⋃ \bigcup \textstyle\bigcup ⋃⋃\bigcup ⨆ ⨆ \bigsqcup \textstyle\bigsqcup ⨆⨆\bigsqcup ⋁ ⋁ \bigvee \textstyle\bigvee ⋁⋁\bigvee
⋀ ⋀ \bigwedge \textstyle\bigwedge ⋀⋀\bigwedge ⨀ ⨀ \bigodot \textstyle\bigodot ⨀⨀\bigodot ⨂ ⨂ \bigotimes \textstyle\bigotimes ⨂⨂\bigotimes
⨁ ⨁ \bigoplus \textstyle\bigoplus ⨁⨁\bigoplus ⨄ ⨄ \biguplus \textstyle\biguplus ⨄⨄\biguplus

下标和上标(Subscripts and Superscripts)

SymbolCommandSymbolCommand
2 2 2^{2} 222^2 a i \textstyle a_i aia_i
2 23 \textstyle 2^{23} 2232^{23} n i − 1 \textstyle n_{i-1} ni1n_{i-1}
a 3 i + 1 a^{i+1}_3 a3i+1a^{i+1}_3 x 3 2 x^{3^2} x32x{32}
2 a i 2^{a_i} 2ai2^{a_i} 2 i a 2^a_i 2ia2^a_i

数学指令(Math Commands)

分数(Fractions)

SymbolCommand
1 2 \frac {1}{2} 21\frac{1}{2} or \frac12
2 x + 2 \frac{2}{x+2} x+22\frac{2}{x+2}
1 + 1 x 3 x + 2 \frac{1+\frac{1}{x}}{3x + 2} 3x+21+x1\frac{1+\frac{1}{x}}{3x + 2}
ExpressionCommand
2 1 + 2 1 + 2 1 + 2 1 \cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}} 1+1+1+12222\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}}

根号(Radicals)

SymbolCommand
3 \sqrt{3} 3 \sqrt{3}
x + y \sqrt{x+y} x+y \sqrt{x+y}
x + 1 2 \sqrt{x+\frac{1}{2}} x+21 \sqrt{x+\frac{1}{2}}
3 3 \sqrt[3]{3} 33 \sqrt[3]{3}
x n \sqrt[n]{x} nx \sqrt[n]{x}

求和等符号(Sums, Products, Limits and Logarithms)

SymbolCommand
∑ i = 1 ∞ 1 i \textstyle \sum_{i=1}^{\infty}\frac{1}{i} i=1i1\sum_{i=1}^{\infty}\frac{1}{i}
∏ n = 1 5 n n − 1 \textstyle \prod_{n=1}^5\frac{n}{n-1} n=15n1n\prod_{n=1}^5\frac{n}{n-1}
lim ⁡ x → ∞ 1 x \textstyle \lim_{x\to\infty}\frac{1}{x} limxx1\lim_{x\to\infty}\frac{1}{x}
lim ⁡ x → ∞ 1 x \textstyle \lim\limits_{x\to\infty}\frac{1}{x} xlimx1\lim\limits_{x\to\infty}\frac{1}{x}
log ⁡ n n 2 \textstyle \log_n n^2 lognn2\log_n n^2

Some of these are prettier in display mode:

SymbolCommand
∑ i = 1 ∞ 1 i \displaystyle\sum_{i=1}^{\infty}\frac{1}{i} i=1i1\displaystyle\sum_{i=1}^{\infty}\frac{1}{i}
∏ n = 1 5 n n − 1 \displaystyle\prod_{n=1}^5\frac{n}{n-1} n=15n1n\displaystyle\prod_{n=1}^5\frac{n}{n-1}
lim ⁡ x → ∞ 1 x \displaystyle\lim_{x\to\infty}\frac{1}{x} xlimx1\displaystyle\lim_{x\to\infty}\frac{1}{x}

Note that we can use sums, products, and logarithms without _ or ^ modifiers.

SymbolCommand
∑ 1 i \sum\frac{1}{i} i1\sum\frac{1}{i}
∏ n n − 1 \prod\frac{n}{n-1} n1n\prod\frac{n}{n-1}
log ⁡ n 2 \textstyle \log n^2 logn2\log n^2
ln ⁡ e \textstyle \ln e lne\ln e

模(Mods)

SymbolCommand
9 ≡ 3   m o d   6 9\equiv 3 \bmod{6} 93mod69\equiv 3 \bmod{6}
9 ≡ 3 ( m o d 6 ) 9\equiv 3 \pmod{6} 93(mod6)9\equiv 3 \pmod{6}
9 ≡ 3 m o d    6 9\equiv 3 \mod{6} 93mod69\equiv 3 \mod{6}
9 ≡ 3 ( 6 ) 9\equiv 3\pod{6} 93(6)9\equiv 3 \pod{6}

组合(Combinations)

SymbolCommand
( 1 1 ) \scriptstyle\binom{1}{1} (11)\binom{1}{1}
( n − 1 r − 1 ) \scriptstyle\binom{n-1}{r-1} (r1n1)\binom{n-1}{r-1}

These often look better in display mode:

SymbolCommand
( 9 3 ) \dbinom{9}{3} (39)\dbinom{9}{3}
( n − 1 r − 1 ) \dbinom{n-1}{r-1} (r1n1)\dbinom{n-1}{r-1}

三角函数(Trigonometric Functions)

Most of these are just the abbreviation of the trigonometric function with simply a backslash added before the abbreviation.

SymbolCommandSymbolCommandSymbolCommand
cos ⁡ \textstyle \cos cos\cos sin ⁡ \textstyle \sin sin\sin tan ⁡ \textstyle \tan tan\tan
sec ⁡ \sec sec\sec csc ⁡ \textstyle \textstyle \csc csc\csc cot ⁡ \textstyle \cot cot\cot
arccos ⁡ \textstyle \arccos arccos\arccos arcsin ⁡ \textstyle \arcsin arcsin\arcsin arctan ⁡ \textstyle \arctan arctan\arctan
cosh ⁡ \textstyle \cosh cosh\cosh sinh ⁡ \textstyle \sinh sinh\sinh tanh ⁡ \textstyle \tanh tanh\tanh
coth ⁡ \textstyle \coth coth\coth

Here are a couple examples:

SymbolCommand
cos ⁡ 2 x + sin ⁡ 2 x = 1 \textstyle \cos^2 x +\sin^2 x = 1 cos2x+sin2x=1\cos^2 x +\sin^2 x = 1
cos ⁡ 9 0 ∘ = 0 \cos 90^\circ = 0 cos90=0\cos 90^\circ = 0

微分积分(Calculus)

Below are examples of calculus expressions rendered in LaTeX. Most of these commands have been introduced before. Notice how definite integrals are rendered (and the difference between inline math and display mode for definite integrals). The , in the integrals makes a small space before the dx.

SymbolCommand
d d x ( x 2 ) = 2 x \frac{d}{dx}\left(x^2\right) = 2x dxd(x2)=2x\frac{d}{dx}\left(x^2\right) = 2x
∫ 2 x   d x = x 2 + C \int 2x\,dx = x^2+C 2xdx=x2+C\int 2x,dx = x^2+C
∫ 1 5 2 x   d x = 24 \int^5_1 2x\,dx = 24 152xdx=24\int^5_1 2x,dx = 24
∂ 2 U ∂ x 2 + ∂ 2 U ∂ y 2 \frac{\partial^2U}{\partial x^2} + \frac{\partial^2U}{\partial y^2} x22U+y22U\frac{\partial^2U}{\partial x^2} + \frac{\partial^2U}{\partial y^2}
1 4 π ∮ Σ 1 r ∂ U ∂ n d s \frac{1}{4\pi}\oint_\Sigma\frac{1}{r}\frac{\partial U}{\partial n} ds 4π1Σr1nUds\frac{1}{4\pi}\oint_\Sigma\frac{1}{r}\frac{\partial U}{\partial n} ds

LaTeX

Other Functions

SymbolCommandSymbolCommandSymbolCommand
arg ⁡ \arg arg\arg deg ⁡ \textstyle\deg deg\deg det ⁡ \textstyle\det det\det
dim ⁡ \dim dim\dim exp ⁡ \textstyle\exp exp\exp gcd ⁡ \textstyle\gcd gcd\gcd
hom ⁡ \hom hom\hom inf ⁡ \inf inf\inf ker ⁡ \ker ker\ker
lg ⁡ \textstyle\lg lg\lg lim inf ⁡ \liminf liminf\liminf lim sup ⁡ \limsup limsup\limsup
max ⁡ \textstyle\max max\max min ⁡ \textstyle\min min\min Pr ⁡ \Pr Pr\Pr
sup ⁡ \sup sup\sup

Some of these commands take subscripts in the same way sums, products, and logarithms do. Some render differently in display mode and inline math mode.

SymbolCommandSymbolCommandSymbolCommand
dim ⁡ x \dim_x dimx\dim_x gcd ⁡ x \textstyle\gcd_x gcdx\gcd_x inf ⁡ x \inf_x infx\inf_x
lim inf ⁡ x \liminf_x liminfx\liminf_x lim sup ⁡ x \limsup_x limsupx\limsup_x max ⁡ x \textstyle\max_x maxx\max_x
min ⁡ x \textstyle\min_x minx\min_x Pr ⁡ x \Pr_x Prx\Pr_x sup ⁡ x \sup_x supx\sup_x

矩阵(Matrices and Arrays)

We can typeset a matrix with the matrix, bmatrix, pmatrix, or vmatrix environments. The letters b, p, and v refer to the delimiters around the matrix (brackets, parentheses, and vertical bars, respectively). For example, the following code

\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
\end{bmatrix}

[ 1 2 3 4 5 6 ] \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ \end{bmatrix} [142536]

\begin{array}{ccc}
a & b & c \\
d & e & f \\
g & h & i 
\end{array}

a b c d e f g h i \begin{array}{ccc} a & b & c \\ d & e & f \\ g & h & i \end{array} adgbehcfi

Text Styles in Math Mode

$$n^2 + 5 = 30\text{ so we have }n=\pm5$$

n 2 + 5 = 30  so we have  n = ± 5 n^2 + 5 = 30\text{ so we have }n=\pm5 n2+5=30 so we have n=±5

How to Build Your Own Commands

\newcommand{name of new command}[number of arguments]{definition}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值