前言
今天是最后一期hitroad杂货铺了
开始
sin x = x 1 ! − x 2 2 ! + x 3 3 ! − x 4 4 ! + x 5 5 ! − ⋯ \sin x=\frac{x}{1!} - \frac{x^2}{2!} + \frac{x^3}{3!} - \frac{x^4}{4!} + \frac{x^5}{5!} - \cdots sinx=1!x−2!x2+3!x3−4!x4+5!x5−⋯
markdown中插入KaTeX
当KaTeX与文字混为一团时,使用$...$
,例如 Γ \Gamma Γ
当KaTex单作一行是,使用$$...$$
,例如 Γ \Gamma Γ
数学符号
符号 | 表达式 |
---|---|
≠ \not= = | $\not=$ |
× \times × | $\times$ |
÷ \div ÷ | $\div$ |
± \pm ± | $\pm$ |
∑ \sum ∑ | $\sum$ |
∏ \prod ∏ | $\prod$ |
∂ \partial ∂ | $\partial$ |
∫ \int ∫ | $\int |
≥ \geq ≥ | $\geq$ 或$\ge$ |
≤ \leq ≤ | $\leq$ 或$\le$ |
≈ \approx ≈ | $\approx$ |
a ⋅ b a \cdot b a⋅b | $a \cdot b$ |
a b \frac{a}{b} ba | $\frac{a}{b}$ |
a b a^b ab | $a^b$ |
a b a_b ab | $a_b$ |
a b \underset{b}{a} ba | $\underset{b}{a}$ |
a b \overset{b}{a} ab | $\overset{b}{a}$ |
a \sqrt a a | $\sqrt a$ |
b a \sqrt [a]{b} ab | $\sqrt [a]{b}$ |
a b c ‾ \overline{abc} abc | \overline{abc}$$ |
∞ \infty ∞ | $\infty$ 或$infin$ |
a ˙ \dot a a˙ | $\dot a$ |
a ¨ \ddot a a¨ | $\ddot a$ |
a ⃗ \vec a a | $\vec a$ |
a ^ \hat a a^ | $\hat a$ |
ı \imath ı | $\imath$ |
ȷ \jmath ȷ | $\jmath$ |
… \ldots … | $\ldots$ |
⋯ \cdots ⋯ | $\cdots$ |
⋮ \vdots ⋮ | $\vdots$ |
⋱ \ddots ⋱ | $\ddots$ |
↑ \uparrow ↑ | $\uparrow$ |
⇑ \Uparrow ⇑ | $\Uparrow$ |
↓ \downarrow ↓ | $\downarrow$ |
⇓ \Downarrow ⇓ | $\Downarrow$ |
← \leftarrow ← | $\Downarrow$ |
⇐ \Leftarrow ⇐ | $\Downarrow$ |
→ \rightarrow → | $\Downarrow$ |
⇒ \Rightarrow ⇒ | $\Downarrow$ |
↕ \updownarrow ↕ | $\downarrow$ |
⇕ \Updownarrow ⇕ | $\Downarrow$ |
↔ \leftrightarrow ↔ | $\Downarrow$ |
⇔ \Leftrightarrow ⇔ | $\Downarrow$ |
a ∈ b a \in b a∈b | $a \in b$ |
a ∉ b a \notin b a∈/b | $a \notin b$ |
a ⊂ b a \subset b a⊂b | $a \subset b$ |
a ⊆ b a \subseteq b a⊆b | $a \subseteq b$ |
a ∪ b a \cup b a∪b | $a \cup b$ |
a ∩ b a \cap b a∩b | $a \cap b |
a ∖ b a \setminus b a∖b | $a \setminus b$ |
a ⨀ b a \bigodot b a⨀b | $a \bigodot b$ |
a ⨂ b a \bigotimes b a⨂b | $a \bigotimes b$ |
a ⨁ b a \bigoplus b a⨁b | $a \bigoplus b$ |
另外,还有\mathbb{...}
,...
是任意大写字母,如果是其他的东西,跟没有\mathbb{}
一样。
这是\mathbb{A}
到\mathbb{Z}
的效果 ↓ \downarrow ↓
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{A}\mathbb{B}\mathbb{C}\mathbb{D}\mathbb{E}\mathbb{F}\mathbb{G}\mathbb{H}\mathbb{I}\mathbb{J}\mathbb{K}\mathbb{L}\mathbb{M}\mathbb{N}\mathbb{O}\mathbb{P}\mathbb{Q}\mathbb{R}\mathbb{S}\mathbb{T}\mathbb{U}\mathbb{V}\mathbb{W}\mathbb{X}\mathbb{Y}\mathbb{Z} ABCDEFGHIJKLMNOPQRSTUVWXYZ
其他符号
公式序号
1 + 1 = 2 (1) 1+1=2\tag{1} 1+1=2(1)
$$1+1=2\tag{1}$$
注意⚠️:tag元素时,请务必记得使用$$...$$
大括号的使用
{ ( a + 6 ) ( b + 6 ) = a b + 114 π b 2 × a × 5 = π a 2 × b × 8 \left\{ \begin{aligned} (a+6)(b+6)=ab + 114\\ \pi b^2 \times a \times 5=\pi a^2 \times b \times 8 \end{aligned} \right. { (a+6)(b+6)=ab+114πb2×a×5=πa2×b×8
\left\{
\begin{aligned}
(a+6)(b+6)=ab + 114\\
\pi b^2 \times a \times 5=\pi a^2 \times b \times 8
\end{aligned}
\right.
注意⚠️:[]
是不需要加\
的,而{}
需要
注意⚠️:在KaTeX中换行时不要忘记加上\\
矩阵
a b c d e f g h i j k l m n o p q r s t \begin{matrix} a & b & c & d & e\\ f & g & h & i & j\\ k & l & m & n & o\\ p & q & r & s & t \end{matrix} afkpbglqchmrdinsejot
\begin{matrix}
a & b & c & d & e\\
f & g & h & i & j\\
k & l & m & n & o\\
p & q & r & s & t
\end{matrix}
[ a b c d e f g h i j k l m n o p q r s t ] \left[ \begin{matrix} a & b & c & d & e\\ f & g & h & i & j\\ k & l & m & n & o\\ p & q & r & s & t \end{matrix} \right] ⎣⎢⎢⎡afkpbglqchmrdinsejot⎦⎥⎥⎤
\left[
\begin{matrix}
a & b & c & d & e\\
f & g & h & i & j\\
k & l & m & n & o\\
p & q & r & s & t
\end{matrix}
\right]
{ a b c d e f g h i j k l m n o p q r s t } \left\{ \begin{matrix} a & b & c & d & e\\ f & g & h & i & j\\ k & l & m & n & o\\ p & q & r & s & t \end{matrix} \right\} ⎩⎪⎪⎨⎪⎪⎧afkpbglqchmrdinsejot⎭⎪⎪⎬⎪⎪⎫
注意⚠️:在KaTeX中换行时不要忘记加上\\
在矩阵中间加竖线:
{ a b c d e f g h i j k l m n o p q r s t } \left\{ \begin{array}{cccc|c} a & b & c & d & e\\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{array} \right\} ⎩⎪⎪⎨⎪⎪⎧afkpbglqchmrdinsejot⎭⎪⎪⎬⎪⎪⎫
\left\{
\begin{array}{cccc|c}
a & b & c & d & e\\
f & g & h & i & j \\
k & l & m & n & o \\
p & q & r & s & t
\end{array}
\right\}
这里\begin{array}{cccc|c}
后部的{cccc|c}
中的|
的位置就是加竖线的位置,可以有多条竖线。不一定非得是{cccc|c}
,也可以是{aaaa|a}
,但不能是{abab|a}
注意⚠️:是array
而不是matrix
希腊字母 | 公式 |
---|---|
α \alpha α和 A \Alpha A | $\alpha$ 和$\Alpha$ |
β \beta β和 B \Beta B | $\beta$ 和$\Beta$ |
γ \gamma γ和 Γ \Gamma Γ | $\gamma$ 和$\Gamma$ |
δ \delta δ和 Δ \Delta Δ | $\delta$ 和$\Delta$ |
ϵ \epsilon ϵ和 E \Epsilon E | $\epsilon$ 和$\Epsilon$ |
ζ \zeta ζ和 Z \Zeta Z | $\zeta$ 和$\Zeta$ |
η \eta η和 H \Eta H | $\eta$ 和$\Eta$ |
θ \theta θ和 Θ \Theta Θ | $\theta$ 和$\Theta$ |
ι \iota ι和 I \Iota I | $\iota$ 和$\Iota$ |
κ \kappa κ和 K \Kappa K | $\kappa$ 和$\K$ |
λ \lambda λ和 Λ \Lambda Λ | $\lambda$ 和$\$Lambda |
μ \mu μ和 M \Mu M | $\mu$ 和$\Mu$ |
ν \nu ν和 N \Nu N | $\nu$ 和$\Nu$ |
ξ \xi ξ和 Ξ \Xi Ξ | $\xi$ 和$\Xi$ |
ο \omicron ο和 O \Omicron O | $\omicron$ 和$\Omicron$ |
π \pi π和 Π \Pi Π | $\pi$ 和$\Pi$ |
ρ \rho ρ和 P \Rho P | $\rho$ 和$\Rho$ |
σ \sigma σ和 Σ \Sigma Σ | $\sigma$ 和$\Sigma$ |
τ \tau τ和 T \Tau T | $\tau$ 和$\Tau$ |
υ \upsilon υ和 Υ \Upsilon Υ | $\upsilon$ 和$\Upsilon$ |
ϕ \phi ϕ和 Φ \Phi Φ | $\phi$ 和$\Phi$ |
χ \chi χ和 X \Chi X | $\chi$ 和$\Chi$ |
ψ \psi ψ和 Ψ \Psi Ψ | $\psi$ 和$\Psi$ |
ω \omega ω和 Ω \Omega Ω | $\omega$ 和$\Omega$ |
字符大小
字符大小 | 公式 |
---|---|
x \tiny x x | $\tiny x$ |
x \scriptsize x x | $\scriptsize x$ |
x \footnotesize x x | $\footnotesize x$ |
x \small x x | $\small x$ |
x x x | $\normalsize x$ 或 $x$ |
x \large x x | $\large x$ |
x \Large x x | $\Large x$ |
x \LARGE x x | $LARGE x$ |
x \huge x x | $\huge x$ |
x \Huge x x | $\Huge x$ |
作者
hit-road
拜拜,下课!