用MarkDown写数学公式时,那些数学符号很容易忘,网上有很多好的的博客写这个,但很多都是要么不直观,要么很杂乱没有重点,今天我就来总结一下吧。带有目录,可以直接从目录里找自己需要的。
后面还有 字 体 A B C D E \mathbb{字体ABCDE} 字体ABCDE和 颜 色 {\color{Red}颜色} 颜色的修改方法
肯定也有总结不到的,大家有用到但这里没有的欢迎提出。
**前言:
常用数学符号 | Markdown |
---|---|
± \pm ± | \pm |
× \times × | \times |
÷ \div ÷ | \div |
∑ \sum ∑ | \sum |
∏ \prod ∏ | \prod |
≠ \neq = | \neq |
\ \backslash \ | \backslash |
≤ \leq ≤ | \leq |
≥ \geq ≥ | \geq |
⋅ \cdot ⋅ | \cdot 点 |
∗ \ast ∗ | \ast 星号 |
⋆ \star ⋆ | \star |
→ \rightarrow → | \rightarrow |
∣ \mid ∣ | \mid 竖线 |
∞ \infin ∞ | \infin 无穷 |
上下标 | Markdown |
---|---|
x 2 x^2 x2 | x^2 |
Z y x Z^{yx} Zyx | Z^{yx} |
x 2 x_2 x2 | x_2 |
Z y x Z_{yx} Zyx | Z_{yx} |
分数 | Markdown |
---|---|
7 x + 5 1 + y 2 \frac{7x+5}{1+y^2} 1+y27x+5 | \frac{7x+5}{1+y^2} |
根式 | Markdown |
---|---|
2 \sqrt{2} 2 | \sqrt{2 } |
3 n \sqrt[n]{3} n3 | \sqrt[n]{3} |
矢量 | Markdown |
---|---|
a ⃗ ⋅ b ⃗ = 0 \vec{a} \cdot \vec{b}=0 a⋅b=0 | \vec{a} \cdot \vec{b}=0 |
省略号 | Markdown |
---|---|
⋯ \cdots ⋯ | \cdots |
⋱ \ddots ⋱ | \ddots |
⋮ \vdots ⋮ | \vdots |
f ( x 1 , x 2 , … , x n ) = x 1 2 + x 2 2 + ⋯ + x n 2 f(x_1,x_2,\ldots,x_n) = x_1^2+x_2^2+\cdots+x_n^2 f(x1,x2,…,xn)=x12+x22+⋯+xn2 |
微积分 | Markdown |
---|---|
∫ \int ∫ | \int |
∬ \iint ∬ | \iint |
∭ \iiint ∭ | \iiint |
∫ m n \int_m^n ∫mn | \int_m^n |
∫ 0 1 x 2 d x \int_0^1x^2dx ∫01x2dx | \int_01x2dx |
→ \rightarrow → | \rightarrow |
lim \lim lim | |
lim n → + ∞ \lim_{n\rightarrow+\infty} limn→+∞ | |
lim n → + ∞ 1 n \lim_{n\rightarrow+\infty}\frac{1}{n} limn→+∞n1 | \lim_{n\rightarrow+\infty}\frac{1}{n} |
∞ \infty ∞ | \infty |
∇ \nabla ∇ | \nabla |
累加 累乘 | Markdown |
---|---|
∑ i n \sum_{i}^{n} ∑in | \sum_{i}^{n} |
∑ i = 0 n 1 i 2 \sum_{i=0}^n \frac{1}{i^2} ∑i=0ni21 | \sum_{i=0}^n \frac{1}{i^2} |
∏ i = 0 n \prod_{i=0}^n ∏i=0n | \prod_{i=0}^n |
∏ i = 0 n 1 i 2 \prod_{i=0}^n \frac{1}{i^2} ∏i=0ni21 | \prod_{i=0}^n \frac{1}{i^2} |
括号 | Markdown |
---|---|
(ok ) | (ok) |
[ok] | [ok ] |
⟨ o k ⟩ \lang{ok}\rang ⟨ok⟩ | \lang{ok}\rang 或 \langle, \rangle |
∣ o k ∣ \lvert{ok }\rvert ∣ok∣ | \lvert{ok}\rvert |
∥ 123 ∥ \lVert{123}\rVert ∥123∥ | \lVert, \rVert |
{ 564 } \lbrace{564}\rbrace {564} | \lbrace, \rbrace 或 {, } |
$\Bigg ( \bigg [ \Big \{\big\langle \left | \| \frac{a}{b} \| \right | \big \rangle\Big\}\bigg ] \Bigg )$
( [ { ⟨ ∣ ∥ a b ∥ ∣ ⟩ } ] ) \Bigg ( \bigg [ \Big \{\big\langle \left | \| \frac{a}{b} \| \right | \big \rangle\Big\}\bigg ] \Bigg ) ([{⟨∣∣∥ba∥∣∣⟩}])
大写 | markdown | 小写 | markdown |
---|---|---|---|
A A A | A | α \alpha α | \alpha |
B B B | B | β | \beta |
Γ \Gamma Γ | \Gamma | γ \gamma γ | \gamma |
Δ \Delta Δ | \Delta | δ \delta δ | \delta |
E E E | E | ϵ \epsilon ϵ | \epsilon |
ε ε ε | \varepsilon | ||
Z Z Z | Z | ζ \zeta ζ | \zeta |
H H H | H | η \eta η | \eta |
Θ \Theta Θ | \Theta | θ \theta θ | \theta |
I I I | I | ι \iota ι | \iota |
K K K | K | κ \kappa κ | \kappa |
Λ \Lambda Λ | \Lambda | λ \lambda λ | \lambda |
M M M | M | μ \mu μ | \mu |
N N N | N | ν \nu ν | \nu |
Ξ Ξ Ξ | \Xi | ξ \xi ξ | \xi |
O O O | O | ο \omicron ο | \omicron |
Π Π Π | \Pi | π \pi π | \pi |
P P P | P | ρ \rho ρ | \rho |
Σ \Sigma Σ | \Sigma | Σ \Sigma Σ | \sigma |
T T T | T | τ \tau τ | \tau |
υ \upsilon υ | \Upsilon | υ \upsilon υ | \upsilon |
Φ \Phi Φ | \Phi | ϕ \phi ϕ | \phi |
φ \varphi φ | \varphi | ||
X X X | X | χ \chi χ | \chi |
Ψ \Psi Ψ | \Psi | ψ \psi ψ | \psi |
Ω \Omega Ω | \Omega | ω \omega ω | \omega |
∂ \partial ∂ | \partial | ||
σ \sigma σ | \sigma |
集合 | Markdown |
---|---|
∅ | \emptyset |
∈ | \in |
∉ | \notin |
⊂ | \subset |
⊃ | \supset |
⊆ | \subseteq |
⊇ | \supseteq |
⋂ | \bigcap |
⋃ | \bigcup |
⋁ | \bigvee |
⋀ | \bigwedge |
⨄ | \biguplus |
⨆ | \bigsqcup |
三角运算 | Markdown |
---|---|
⊥ | |
∠ | \angle |
30∘ | 30^\circ |
sin | \sin |
cos | \cos |
tan | \tan |
cot | \cot |
sec | \sec |
csc | \csc |
逻辑运算 | |
---|---|
∵ | \because |
∴ | \therefore |
∀ | \forall |
∃ | \exists |
≠ | \not= |
≯ \not> > | \not> |
⊄ | \not\subset |
戴帽符号 | Markdown |
---|---|
y ^ \hat{y} y^ | \hat{y} |
y ˇ \check{y} yˇ | \check{y} |
y ˘ \breve{y} y˘ | \breve{y} |
插入一个空格
或 或
插入两个空格
或 或
入四个空格
或 或
插入细空格
或 或
插入一个空格
或 或
插入两个空格
或 或
入四个空格
或 或
插入细空格
或 或
注意:不要漏掉分号。
两个quad空格,符号: \qquad, 如: | x y x \qquad y xy |
quad空格,符号: \quad, 如: | x y x \quad y xy |
大空格,符号\,如: | x y x\ y x y |
中空格,符号:,如: | x : y x:y x:y |
小空格,符号,, 如: | x , y x,y x,y |
没有空格,符号”,如: | x y xy xy |
紧贴,符号!,如: | x y x\!y xy. |
连线符号 | Markdown |
---|---|
a + b + c + d ‾ \overline{a+b+c+d} a+b+c+d | \overline{a+b+c+d} |
a + b + c + d ‾ \underline{a+b+c+d} a+b+c+d | \underline{a+b+c+d} |
a + b + c ⏟ 1.0 + d ⏞ 2.0 \overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0} a+ b+c1.0+d 2.0 | \overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0} |
⓪ ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳ ㉑ ㉒ ㉓ ㉔ ㉕ ㉖ ㉗ ㉘ ㉙ ㉚ ㉛ ㉜ ㉝ ㉞ ㉟ ㊱ ㊲ ㊳ ㊴ ㊵ ㊶ ㊷ ㊸ ㊹ ㊺ ㊻ ㊼ ㊽ ㊾ ㊿
These are specifically sans-serif:
➀ ➁ ➂ ➃ ➄ ➅ ➆ ➇ ➈ ➉
Black Circled Number
⓿ ❶ ❷ ❸ ❹ ❺ ❻ ❼ ❽ ❾ ❿⓫ ⓬ ⓭ ⓮ ⓯ ⓰ ⓱ ⓲ ⓳ ⓴
These are specifically sans-serif:
➊ ➋ ➌ ➍ ➎ ➏ ➐ ➑ ➒ ➓
ON BLACK SQUARE
㉈ ㉉ ㉊ ㉋ ㉌ ㉍ ㉎ ㉏
Double-Circled Number
⓵ ⓶ ⓷ ⓸ ⓹ ⓺ ⓻ ⓼ ⓽ ⓾
Number with Period
⒈ ⒉ ⒊ ⒋ ⒌ ⒍ ⒎ ⒏ ⒐ ⒑ ⒒ ⒓ ⒔ ⒕ ⒖ ⒗ ⒘ ⒙ ⒚ ⒛
Number with Parenthesis
⑴ ⑵ ⑶ ⑷ ⑸ ⑹ ⑺ ⑻ ⑼ ⑽ ⑾ ⑿ ⒀ ⒁ ⒂ ⒃ ⒄ ⒅ ⒆ ⒇
Chinese Circled Number
㊀ ㊁ ㊂ ㊃ ㊄ ㊅ ㊆ ㊇ ㊈ ㊉
ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ⓪
ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ
箭头符号 | |
---|---|
↑ | \uparrow |
↓ | \downarrow |
⇑ | \Uparrow |
⇓ | \Downarrow |
→ | \rightarrow |
← | \leftarrow |
⇒ | \Rightarrow |
⇐ | \Leftarrow |
⟶ | \longrightarrow |
⟵ | \longleftarrow |
⟹ | \Longrightarrow |
⟸ | \Longleftarrow |
其他符号 | Markdown |
---|---|
∤ \nmid ∤ | \nmid |
∘ \circ ∘ | \circ 圈 |
∙ \bullet ∙ | \bullet |
≀ \wr ≀ | \wr |
⋄ \diamond ⋄ | \diamond |
◊ \Diamond ◊ | \Diamond |
△ \triangle △ | \triangle |
△ \bigtriangleup △ | \bigtriangleup |
▽ \bigtriangledown ▽ | \bigtriangledown |
◃ \triangleleft ◃ | \triangleleft |
▹ \triangleright ▹ | \triangleright |
⊲ \lhd ⊲ | \lhd |
⊳ \rhd ⊳ | \rhd |
⊴ \unlhd ⊴ | \unlhd |
⊵ \unrhd ⊵ | \unrhd |
∘ \circ ∘ | \circ |
◯ \bigcirc ◯ | \bigcirc |
⊙ \odot ⊙ | \odot |
⨀ \bigodot ⨀ | \bigodot 点积 |
⊘ \oslash ⊘ | \oslash |
⊖ \ominus ⊖ | \ominus |
⊗ \otimes ⊗ | \otimes |
⨂ \bigotimes ⨂ | \bigotimes 克罗内克积 |
⊕ \oplus ⊕ | \oplus |
⨁ \bigoplus ⨁ | \bigoplus 异或 |
† \dagger † | \dagger |
‡ \ddagger ‡ | \ddagger |
⨿ \amalg ⨿ | \amalg |
ℏ \hbar ℏ | \hbar |
ı \imath ı | \imath |
ȷ \jmath ȷ | \jmath |
ℓ \ell ℓ | \ell |
℘ \wp ℘ | \wp |
ℜ \Re ℜ | \Re |
ℑ \Im ℑ | \Im |
℧ \mho ℧ | \mho |
∇ \nabla ∇ | \nabla |
√ \surd √ | \surd |
⊤ \top ⊤ | \top |
⊥ \bot ⊥ | \bot |
¬ \neg ¬ | \neg |
♭ \flat ♭ | \flat |
♮ \natural ♮ | \natural |
♯ \sharp ♯ | \sharp |
\ \backslash \ | \backslash |
□ \Box □ | \Box |
♣ \clubsuit ♣ | \clubsuit |
♢ \diamondsuit ♢ | \diamondsuit |
♡ \heartsuit ♡ | \heartsuit |
♠ \spadesuit ♠ | \spadesuit |
y = { − x , x ≤ 0 x 2 , x > 0 (1) y=\begin{cases} -x,\quad x\leq 0\\ x^2, \quad x>0 \end{cases} \tag{1} y={−x,x≤0x2,x>0(1)
$$
y=
\begin{cases}
-x,\quad x\leq 0\\
x, \quad x>0
\end{cases}
\tag{1}
$$
1 2 3 4 5 6 7 8 9 (1) \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1} 147258369(1)
$$
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\tag{1}
$$
( 1 2 3 4 5 6 7 8 9 ) (2) \left( \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right) \tag{2} ⎝⎛147258369⎠⎞(2)
$$\left(
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right)
\tag{2}
$$
[ 1 2 3 4 5 6 7 8 9 ] (3) \left[ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right] \tag{3} ⎣⎡147258369⎦⎤(3)
$$\left[
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right]
\tag{3}
$$
{ 1 2 3 4 5 6 7 8 9 } (4) \left\{ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right\} \tag{4} ⎩⎨⎧147258369⎭⎬⎫(4)
$$\left\{
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right\}
\tag{4}
$$
[ a b ⋯ a b b ⋯ b ⋮ ⋮ ⋱ ⋮ c c ⋯ c ] (5) \left[ \begin{matrix} a & b & \cdots & a\\ b & b & \cdots & b\\ \vdots & \vdots & \ddots & \vdots\\ c & c & \cdots & c \end{matrix} \right] \tag{5} ⎣⎢⎢⎢⎡ab⋮cbb⋮c⋯⋯⋱⋯ab⋮c⎦⎥⎥⎥⎤(5)
$$
\left[
\begin{matrix}
a & b & \cdots & a\\
b & b & \cdots & b\\
\vdots & \vdots & \ddots & \vdots\\
c & c & \cdots & c
\end{matrix}
\right]
\tag{5}
$$
[ 1 2 3 4 5 6 7 8 9 ] (6) \left[ \begin{array}{c|cc} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \tag{6} ⎣⎡147258369⎦⎤(6)
$$
\left[
\begin{array}{c|cc}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{array}
\right]
\tag{6}
$$
[ 1 2 3 4 5 6 7 8 9 ] (7) \left[ \begin{array}{c|cc} 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \tag{7} ⎣⎡147258369⎦⎤(7)
$$
\left[
\begin{array}{c|cc}
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\
7 & 8 & 9
\end{array}
\right]
\tag{7}
$$
语法
字体颜色︰{\color{色调}表达式}
背景颜色︰{\pagecolor{色调}表达式}
*注︰输入时第一个字母必需以大写输入,如\color{OliveGreen}。
${\color{Blue}x^2}+{\color{Brown}2x} -{\color{OliveGreen}1}$
x 2 + 2 x − 1 {\color{Blue}x^2}+{\color{Brown}2x} -{\color{OliveGreen}1} x2+2x−1
x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}
x 1 , 2 = − b ± b 2 − 4 a c 2 a x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a} x1,2=2a−b±b2−4ac
黑板粗体
$\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ
正粗体
语法
$\mathbf{012…abc…ABC…}$
012 … a b c … A B C … \mathbf{012…abc…ABC…} 012…abc…ABC…
注:”花括号{}内只能使用拉丁字母和数字,不能使用希腊字母如\alpha等。斜粗体
斜体数字
语法
$\mathit{0123456789}$
0123456789 \mathit{0123456789} 0123456789
手写体
语法
\mathcal{ABCabc…}
A B C a b c … \mathcal{ABCabc…} ABCabc…
:bowtie: :bowtie: :smile: :laughing:
:blush: :smiley: :relaxed: ☺️
:smirk: :heart_eyes: :kissing_heart:
:kissing_closed_eyes: :flushed: :relieved:
:satisfied: :grin: :wink:
:stuck_out_tongue_winking_eye:
:stuck_out_tongue_closed_eyes: :grinning:
:kissing: :kissing_smiling_eyes:
:stuck_out_tongue:
:sleeping: :worried: :frowning:
:anguished: :open_mouth: :grimacing:
:confused: :hushed: :expressionless:
:unamused: :sweat_smile: :sweat:
:disappointed_relieved: :weary: :pensive:
:disappointed: :confounded: :fearful:
:cold_sweat: :persevere: :cry:
:sob: :joy: :astonished:
:scream: :tired_face:
:angry: :rage: :triumph:
:sleepy: :yum: :mask:
:sunglasses: :dizzy_face: :imp:
:smiling_imp: :neutral_face: :no_mouth:
:innocent: :alien: :yellow_heart:
:blue_heart: :purple_heart: :heart: ❤️
:green_heart: :broken_heart: :heartbeat:
:heartpulse: :two_hearts:
:cupid: :sparkling_heart: :sparkles: ✨
:star: ⭐️ :star2: :dizzy:
:boom: :collision: :anger:
:exclamation: ❗️ :question: ❓ :grey_exclamation: ❕
:grey_question: ❔ :zzz: :dash:
:sweat_drops: :notes: :musical_note:
:fire: :hankey: :poop:
:: :+1: :thumbsup:
:-1: :thumbsdown: :ok_hand:
:punch: :facepunch: :fist: ✊
:v: ✌️ :wave: :hand: ✋
:raised_hand: ✋ :open_hands: :point_up: ☝️
:point_down: :point_left: :point_right:
:raised_hands: :pray: :point_up_2:
:clap: :muscle: :metal:
:fu: :walking: :runner:
:running: :couple: :family: