用Markdown写博客的时候经常会用到公式或一些其它符号,所以对一些常用的符号进行一些总结 Katex官网
注:要写在 $ $ 中
1. 关系
+ − ∗ / > < : ∣ = ( ) + - * / > < :|=() +−∗/><:∣=()等直接输入即可
符号 | 代码 | 否定符号 | 代码 |
---|---|---|---|
= = = | = | ≠ \not = = | \not = 或 \neq 或 \ne |
> > > | > 或 \gt | ≯ \ngtr ≯ | \ngtr |
≥ \ge ≥ | \ge 或 \geq | ≱ \ngeq ≱ | \ngeq |
⩾ \geqslant ⩾ | \geqslant | ≱ \ngeqslant | \ngeqslant |
≤ \le ≤ | \le 或 \leq | ≰ \nleq ≰ | \nleq |
⩽ \leqslant ⩽ | \leqslant | ≰ \nleqslant | \nleqslant |
< < < | < 或 \lt | ≮ \nless ≮ | \nless |
∼ \sim ∼ | \sim | ≁ \nsim ≁ | \nsim |
⊆ \subseteq ⊆ | \subseteq 或 \sube | ⊈ \nsubseteq ⊈ | \nsubseteq |
⊇ \supseteq ⊇ | \supseteq 或 \supe | ⊉ \nsupseteq ⊉ | \nsubseteq |
∈ \in ∈ | \in 或 \isin | ∉ \notin ∈/ | \notin |
∋ \ni ∋ | \ni | ∌ \notni ∋ | \notni |
≡ \equiv ≡ | \equiv | ||
≈ \approx ≈ | \approx | ||
⊂ \subset ⊂ | \subset 或 \sub | ||
⊃ \supset ⊃ | \supset | ||
≪ \ll ≪ | \ll | ||
⋘ \lll ⋘ | \lll | ||
≫ \gg ≫ | \gg | ||
⋙ \ggg ⋙ | \ggg |
2. 括号
( ) [ ] { } () [] \{\} ()[]{}等改变大小方法相同
符号 | 代码 |
---|---|
( ( ( | ( 或 \lparent |
) ) ) | ) 或 \rparent |
( \big( ( | \big( |
( \Big( ( | \Big( |
( \bigg( ( | \bigg( |
( \Bigg( ( | \Bigg( |
[ [ [ | [ 或 \lbrack |
] \rbrack ] | ] 或 \rbrack |
{ \lbrace { | { 或 \lbrace |
} \rbrace } | } 或 \rbrace |
∥ ∥ \lVert\rVert ∥∥ | \lVert \rVert |
3. 箭头
箭头改到下边,就把over改成under
符号 | 代码 |
---|---|
→ a b c \xrightarrow{abc} abc | \xrightarrow{abc} |
← a b c \xleftarrow{abc} abc | \xleftarrow{abc} |
↔ a b c \xleftrightarrow{abc} abc | \xleftrightarrow{abc} |
⇒ a b c \xRightarrow{abc} abc | \xRightarrow{abc} |
⇐ a b c \xLeftarrow{abc} abc | \xLeftarrow{abc} |
⇔ a b c \xLeftrightarrow{abc} abc | \xLeftrightarrow{abc} |
= a b c \xlongequal{abc} abc | \xlongequal{abc} |
A B ‾ \overline{AB} AB | \overline{AB} |
A B → \overrightarrow{AB} AB | \overrightarrow{AB} |
A B ← \overleftarrow{AB} AB | \overleftarrow{AB} |
F ⃗ \vec{F} F | \vec{F} |
↑ \uparrow ↑ | \uparrow |
↓ \downarrow ↓ | \downarrow |
a ^ \hat{a} a^ | \hat{a} |
a c ^ \widehat{ac} ac | \widehat{ac} |
4. 高数
其他三角函数及数学操作符同 cos \cos cos 和 sin \sin sin
符号 | 代码 |
---|---|
π \pi π | \pi |
x a b x_{ab} xab | x_{ab} |
e a b e^{ab} eab | e^{ab} |
a b 2 \sqrt[2]{ab} 2ab | \sqrt[2]{ab} |
cos \cos cos | \cos |
sin \sin sin | \sin |
∞ \infin ∞ | \infin |
∑ \sum ∑ | \sum |
∏ \prod ∏ | \prod |
⋃ \bigcup ⋃ | \bigcup |
⋂ \bigcap ⋂ | \bigcap |
∫ \int ∫ | \int |
∬ \iint ∬ | \iint |
∭ \iiint ∭ | \iiint |
∮ \oint ∮ | \oint |
∯ \oiint ∬ | \oiint |
∰ \oiiint ∭ | \oiiint |
lim x → ∞ \lim\limits_{x\rightarrow\infin} x→∞lim | \lim\limits_{x\rightarrow\infin} |
∑ i = 1 n \displaystyle\sum_{i=1}^n i=1∑n | \displaystyle\sum_{i=1}^n |
∑ i = 1 n \textstyle\sum_{i=1}^n ∑i=1n | \textstyle\sum_{i=1}^n |
5. 逻辑
符号 | 代码 |
---|---|
∀ \forall ∀ | \forall |
∃ \exist ∃ | \exist 或 \exists |
∄ \nexists ∄ | \nexists |
∧ \land ∧ | \land |
∨ \lor ∨ | \lor |
∵ \because ∵ | \because |
∴ \therefore ∴ | \therefore |
→ \to → | \to |
← \gets ← | \gets |
↔ \leftrightarrow ↔ | \leftrightarrow |
⟹ \implies ⟹ | \implies |
⟸ \impliedby ⟸ | \impliedby |
⟺ \iff ⟺ | \iff |
¬ \neg ¬ | \neg 或 \lnot |
⋅ \cdot ⋅ | \cdot |
⊙ \odot ⊙ | \odot |
⊕ \oplus ⊕ | \oplus |
∪ \cup ∪ | \cup |
∩ \cap ∩ | \cap |
∅ \emptyset ∅ | \emptyset |
∅ \varnothing ∅ | \varnothing |
× \times × | \times |
÷ \div ÷ | \div |
& \And & | \And |
6. 希腊字母
书写体只需在代码前加上var
大写符号 | 代码 | 小写符号 | 代码 |
---|---|---|---|
A \Alpha A | \Alpha | α \alpha α | \alpha |
B \Beta B | \Beta | β \beta β | \beta |
Γ \Gamma Γ | \Gamma | γ \gamma γ | \gamma |
Δ \Delta Δ | \Delta | δ \delta δ | \delta |
E \Epsilon E | \Epsilon | ϵ \epsilon ϵ | \epsilon |
Z \Zeta Z | \Zeta | ζ \zeta ζ | \zeta |
H \Eta H | \Eta | η \eta η | \eta |
Θ \Theta Θ | \theta | Θ \Theta Θ | \theta |
I \Iota I | \Iota | ι \iota ι | \iota |
K \Kappa K | \Kappa | κ \kappa κ | \kappa |
Λ \Lambda Λ | \Lambda | λ \lambda λ | \lambda |
M \Mu M | \Mu | μ \mu μ | \mu |
N \Nu N | \Nu | ν \nu ν | \nu |
Ξ \Xi Ξ | \Xi | ξ \xi ξ | \xi |
O \Omicron O | \Omicron | ο \omicron ο | \omicron |
Π \Pi Π | \Pi | π \pi π | \pi |
P \Rho P | \Rho | P \Rho P | \Rho |
Σ \Sigma Σ | \Sigma | σ \sigma σ | \sigma |
T \Tau T | \Tau | τ \tau τ | \tau |
Υ \Upsilon Υ | \Upsilon | υ \upsilon υ | \upsilon |
Φ \Phi Φ | \Phi | ϕ \phi ϕ | \phi |
X \Chi X | \Chi | χ \chi χ | \chi |
Ψ \Psi Ψ | \Psi | ψ \psi ψ | \psi |
Ω \Omega Ω | \Omega | ω \omega ω | \omega |
∇ \nabla ∇ | \nabla |
7. 矩阵
符号 | 代码 |
---|---|
a b c d \begin {matrix}a & b \\c & d\end {matrix} acbd | \begin {matrix} a & b \\ c&d \end {matrix} |
( a b c d ) \begin {pmatrix}a & b \\c & d\end {pmatrix} (acbd) | \begin {pmatrix} a & b \\ c & d \end {pmatrix} |
[ a b c d ] \begin{bmatrix}a & b \\c & d\end{bmatrix} [acbd] | \begin {bmatrix} a & b \\ c & d \end {bmatrix} |
∣ a b c d ∣ \begin{vmatrix}a & b \\c & d\end{vmatrix} ∣∣∣∣acbd∣∣∣∣ | \begin {vmatrix} a & b \\ c & d \end {vmatrix} |
∥ a b c d ∥ \begin{Vmatrix}a & b \\c & d\end{Vmatrix} ∥∥∥∥acbd∥∥∥∥ | \begin {Vmatrix} a & b \\ c & d \end {Vmatrix} |
{ a b c d } \begin{Bmatrix}a & b \\c & d\end{Bmatrix} {acbd} | \begin {Bmatrix} a & b \\ c & d \end {Bmatrix} |
10 x + 3 y = 2 3 x + 13 y = 4 \begin{alignedat}{2} 10x+3y = 2 \\ 3x+13y = 4 \end{alignedat} 10x+3y=23x+13y=4 | \begin {alignedat}{2} 10x+3y = 2 \\ 3x+13y = 4 \end {alignedat} |
x = { a if b c if d x = \begin{cases}a &\text{if } b \\c &\text{if } d\end{cases} x={acif bif d | x = \begin {cases} a &\text{if } b \\ c &\text{if } d \end {cases} |
a if b c if d } \left. \begin{matrix} a &\text{if } b \\c &\text{if } d\end{matrix}\right\} acif bif d} | \left. \begin {matrix} a &\text{if } b \\ c &\text{if } d \end {matrix} \right\} |
8.函数和二项式
符号 | 代码 |
---|---|
a b + c \frac{a}{b+c} b+ca | \frac{a}{b+c} 或 a \over b+c |
a b + c \cfrac{a}{b+c} b+ca | \cfrac{a}{b+c} |
a / b a/b a/b | a/b |
( n k ) \binom{n}{k} (kn) | \binom{n}{k} |
( n k ) \dbinom{n}{k} (kn) | \dbinom{n}{k} |
9. 其他
符号 | 代码 |
---|---|
空格 | \space |
… \dots … | \dots |
⋯ \cdots ⋯ | \cdots |