markdown 常用符号大全
[dir]
标题符号
语法 | 含义 |
---|---|
# | 一级标题 |
## | 二级标题(# 越多,级数越多,依次类推) |
+ | 无序列表(可嵌套) |
数学符号
含义 | 语法 | 效果 |
---|---|---|
点乘 | a \times b | a×ba\times ba×b |
叉乘 | a \cdot b | a⋅ba \cdot ba⋅b |
内积 | \langle a,b \rangle | ⟨a,b⟩\langle a, b\rangle⟨a,b⟩ |
外积 | a \otimes b | a⊗ba\otimes ba⊗b |
任意 | \forall | ∀\forall∀ |
存在 | \exists | ∃\exists∃ |
花体字母
以字母A为例,其他字母类似
语法 | 效果 |
---|---|
\mathbb{A} | R\mathbb{R}R |
\mathcal{A} | A\mathcal{A}A |
\mathscr{A} | A\mathscr{A}A |
\mathrm{A} | A\mathrm{A}A |
\mathbf{A} | A\mathbf{A}A |
\mathit{A} | A\mathit{A}A |
\mathtt{A} | A\mathtt{A}A |
\mathfrak{A} | A\mathfrak{A}A |
\mathsf{A} | A\mathsf{A}A |
分段函数
$f(x) = \begin{cases}
x^2 + 2x + 1, & \text{当 } x < 0 \text{ 时} \\
3x + 2, & \text{当 } 0 \leq x < 1 \text{ 时} \\
x + 3, & \text{当 } x \geq 1 \text{ 时}
\end{cases}$
f(x)={x2+2x+1,当 x<0 时3x+2,当 0≤x<1 时x+3,当 x≥1 时f(x) = \begin{cases} x^2 + 2x + 1, & \text{当 } x < 0 \text{ 时} \\ 3x + 2, & \text{当 } 0 \leq x < 1 \text{ 时} \\ x + 3, & \text{当 } x \geq 1 \text{ 时} \end{cases}f(x)=⎩⎨⎧x2+2x+1,3x+2,x+3,当 x<0 时当 0≤x<1 时当 x≥1 时
多行公式
$\begin{aligned}
s&=\frac{1}{2}(a+b)h\\
&=\frac{1}{2}(8+12)·6\\
&=10·6=60
\end{aligned}$
s=12(a+b)h=12(8+12)⋅6=10⋅6=60\begin{aligned} s&=\frac{1}{2}(a+b)h\\ &=\frac{1}{2}(8+12)·6\\ &=10·6=60 \end{aligned}s=21(a+b)h=21(8+12)⋅6=10⋅6=60
数学符号
含义 | 语法 | 效果 |
---|---|---|
底端对齐省略号 | 1, 2, \ldots , n | 1,2,…,n1, 2, \ldots , n1,2,…,n |
中线对齐省略号 | 1, 2, \cdots, n | 1,2,⋯ ,n1,2,\cdots,n1,2,⋯,n |
竖直省略号 | \vdots | ⋮\vdots⋮ |
斜对齐省略号 | \ddots | ⋱\ddots⋱ |
虚数集合 | \imath | ı\imath |
实数集合 | \mathbb{R} | R\mathbb{R}R |
自然数集合 | \mathbb{Z} | Z\mathbb{Z}Z |
空集 | $\emptyset | $ |
上标 | \hat{x} | x^\hat{x}x^ |
上标 | \check{x} | xˇ\check{x}xˇ |
上标 | \breve{x} | x˘\breve{x}x˘ |
上标 | \tilde{x} | x~\tilde{x}x~ |
上标 | \bar{x} | aˉ\bar{a}aˉ |
向量 | \vec{x} | x⃗\vec{x}x |
上标 | \acute{x} | xˊ\acute{x}xˊ |
上标 | \mathring{x} | x˚\mathring{x}x˚ |
一阶导 | \dot{a} | a˙\dot{a}a˙ |
二阶导 | \ddot{a} | a¨\ddot{a}a¨ |
上箭头 | \uparrow | ↑\uparrow↑ |
上箭头 | \Uparrow | ⇑\Uparrow⇑ |
下箭头 | \downarrow | ↓\downarrow↓ |
下箭头 | \Downarrow | ⇓\Downarrow⇓ |
左箭头 | \leftarrow | ←\leftarrow← |
左箭头 | \Leftarrow | ⇐\Leftarrow⇐ |
右箭头 | \rightarrow | →\rightarrow→ |
右箭头 | \Rightarrow | ⇒\Rightarrow⇒ |
上划线 | \overline{AB} | AB‾\overline{AB}AB |
下划线 | \underline{AB} | AB‾\underline{AB}AB |
上括号 | \overbrace{1+2+\cdots+n} | 1+2+⋯+n⏞\overbrace{1+2+\cdots+n}1+2+⋯+n |
下括号 | \underbrace{1+2+\cdots+n} | 1+2+⋯+n⏟\underbrace{1+2+\cdots+n}1+2+⋯+n |
在字母下添加字母 | \mathop{Max}\limits_{x \in X} | Maxx∈X\mathop{Max}\limits_{x \in X}x∈XMax |
上取整 | \lceil x \rceil | ⌈x⌉\lceil x \rceil⌈x⌉ |
下取整 | \lfloor x \rfloor | ⌊x⌋\lfloor x \rfloor⌊x⌋ |
常用微分符号
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
\nabla | ∇\nabla∇ | \partial x | ∂x\partial x∂x |
\mathrm{d}x | dx\mathrm{d}xdx | \dot x | x˙\dot xx˙ |
\ddot y | y¨\ddot yy¨ |
希腊字母
字母 | 实现 | 字母 | 实现 |
---|---|---|---|
A | A | α | \alhpa |
B | B | β | \beta |
Γ | \Gamma | γ | \gamma |
Δ | \Delta | δ | \delta |
E | E | ϵ | \epsilon |
Z | Z | ζ | \zet |
H | H | η | \eta |
Θ | \Theta | θ | \theta |
I | I | ι | \iota |
K | K | κ | \kappa |
Λ | \Lambda | λ | \lambda |
M | M | μ | \mu |
N | N | ν | \nu |
Ξ | \X | ξ | \xi |
O | O | ο | \omicron |
Π | \Pi | π | \pi |
P | P | ρ | \rho |
Σ | \Sigma | σ | \sigma |
T | T | τ | \tau |
Υ | \Upsilon | υ | \upsilon |
Φ | \Phi | ϕ | \phi |
X | X | χ | \chi |
Ψ | \Psi | ψ | \psi |
Ω | \v | ω | \omega |
运算符号
含义 | 语法 | 效果 |
---|---|---|
求和 | \sum_{x>1}f(x) | ∑x>1f(x)\sum_{x>1}f(x)∑x>1f(x) |
求和 | \sum\limits_{n=1}^{n<10}n | ∑n=1n<10n\sum\limits_{n=1}^{n<10}nn=1∑n<10n |
乘积 | \prod_{i=1}^N x_i | ∏i=1Nxi\prod_{i=1}^N x_i∏i=1Nxi |
乘积 | \prod\limits_{i=1}^N x_i | ∏i=1Nxi\prod\limits_{i=1}^N x_ii=1∏Nxi |
极限 | \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}} | limy→0x→∞xy\lim^{x \to \infty}_{y \to 0}{\frac{x}{y}}limy→0x→∞yx |
极限 | \lim\limits_{x \to \infty}^{y\to 0} \frac{x}{y} | limx→∞y→0xy\lim\limits_{x \to \infty}^{y\to 0} \frac{x}{y}x→∞limy→0yx |
一重积分 | \int_{a}^{b}f(x)dx | ∫abf(x)dx\int_{a}^{b}f(x)dx∫abf(x)dx |
二重积分 | \iint_\Omega f(x,y)dS | ∬Ωf(x,y)dS\iint_\Omega f(x,y)dS∬Ωf(x,y)dS |
三重积分 | \iiint_\Omega f(x,y,z)dV | ∭Ωf(x,y,z)dV\iiint_\Omega f(x,y,z)dV∭Ωf(x,y,z)dV |
加减 | a \pm b | a±ba\pm ba±b |
减加 | a \mp b | a∓ba\mp ba∓b |
乘法 | a \times b | a×ba \times ba×b |
除法 | a \div b | a÷ba\div ba÷b |
对数 | \log{a+b} | loga+b\log{a+b}loga+b |
开方 | \sqrt{a + b} | a+b\sqrt{a+b}a+b |
n次根号 | \sqrt[n]{3} | 3n\sqrt[n]{3}n3 |
点乘 | a \cdot b | a⋅ba \cdot ba⋅b |
叉乘 | a \times b | $a \times b $ |
内积 | \langle x, b \rangle | ⟨x,b⟩\langle x, b \rangle⟨x,b⟩ |
外积 | a \otimes b | a⊗ba \otimes ba⊗b |
分式 | \frac{a}{b} | ab\frac{a}{b}ba |
小于等于 | \leq | ≤\leq≤ |
大于等于 | \geq | ≥\geq≥ |
不等于 | \neq | ≠\neq= |
不小于等于 | \nleq | ≰\nleq≰ |
不大于等于 | \ngeq | ≱\ngeq≱ |
约等于 | \approx | ≈\approx≈ |
恒等于 | \equiv | ≡\equiv≡ |
无穷 | \infty | ∞\infty∞ |
属于 | a \in A | a∈Aa\in Aa∈A |
不属于 | a \notin A | a∉Aa \notin Aa∈/A |
子集 | x \subset y | x⊂yx \subset yx⊂y |
非子集 | x \not\subset y | x⊄yx \not\subset yx⊂y |
真子集 | x \subseteq y | x⊆yx \subseteq yx⊆y |
非真子集 | x \subsetneq y | x⊊yx \subsetneq yx⊊y |
并集 | x \cup y | x∪yx \cup yx∪y |
交集 | x \cap y | x∩yx \cap yx∩y |
差集 | x \setminus y | x∖yx \setminus yx∖y |
同或 | $x \bigodot y | x⨀yx \bigodot yx⨀y |
同与 | x \bigotimes y | x⨂yx \bigotimes yx⨂y |
因为 | \beacuse | ∵\because∵ |
所以 | \therefore | ∴\therefore∴ |
矩阵
最后的\tag{1}
表示序号
1. 简单矩阵
$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix} \tag{1}
$$
123456789(1) \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1} 147258369(1)
2. 带括号的矩阵
中括号
$$
\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{bmatrix} \tag{2}
$$
[123456789](2) \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \tag{2} 147258369(2)
大括号
$$
\begin{Bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{Bmatrix} \tag{3}
$$
{123456789}(3) \begin{Bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{Bmatrix} \tag{3} ⎩⎨⎧147258369⎭⎬⎫(3)
3. 包含省略号
$$
\begin{bmatrix}
1 & 2 & \cdots & n \\
1 & 2 & \cdots & n \\
\vdots & \vdots & \ddots & \vdots \\
1 & 2 & \cdots & n
\end{bmatrix} \tag{4}
$$
[12⋯n12⋯n⋮⋮⋱⋮12⋯n](4) \begin{bmatrix} 1 & 2 & \cdots & n \\ 1 & 2 & \cdots & n \\ \vdots & \vdots & \ddots & \vdots \\ 1 & 2 & \cdots & n \end{bmatrix} \tag{4} 11⋮122⋮2⋯⋯⋱⋯nn⋮n(4)
4. 行列式
$$
\begin{vmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{vmatrix}
\tag{7}
$$
∣123456789∣(7) \begin{vmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{vmatrix} \tag{7} 147258369(7)
表格
1. 普通表格
$$
\begin{array}{|c|c|c|}
\hline 2&9&4\\
\hline 7&5&3\\
\hline 6&1&8\\
\hline
\end{array}
$$
294753618 \begin{array}{|c|c|c|} \hline 2&9&4\\ \hline 7&5&3\\ \hline 6&1&8\\ \hline \end{array} 276951438
说明: {c|c|c}
中,每个字母代表一列,c
表示居中,l
表示左对齐,r
表示右对齐。
|
表示竖直分隔线,||
表示两条竖直分隔线。
\hline
表示在下一行输入前插入水平分割线。
2. 真值表
$$
\begin{array}{cc|c}
A&B&F\\
\hline 0&0&0\\
0&1&1\\
1&0&1\\
1&1&1\\
\end{array}
$$
ABF000011101111 \begin{array}{cc|c} A&B&F\\ \hline 0&0&0\\ 0&1&1\\ 1&0&1\\ 1&1&1\\ \end{array} A0011B0101F0111
流程图
更详细的参考 https://mermaid.nodejs.cn/syntax/quadrantChart.html
输入代码块
···mermaid
……流程图代码……
···
流程图代码示例如下:
graph TB
A(开始)
B[打开冰箱门]
C{"冰箱小不小?"}
D((连接))
效果为
连线时用-->
水平和垂直分别用LR
, TD
控制
竖直:
graph TD
A[方形] --> B(圆角)
B --> C{条件a}
C --> |a=1| D[结果1]-->F(结束)
C --> |a=2| E[结果2]-->F
水平:
graph LR
A[方形] --> B(圆角)
B --> C{条件a}
C --> |a=1| D[结果1]-->F(结束)
C --> |a=2| E[结果2]-->F
效果如下: