老兄,還在爲你的MarkDown寫作發愁嗎?這些數學符號表達式絕對有你想要的那個,最後還有字體和顏色的修改方法哦

用MarkDown寫數學公式時,那些數學符號很容易忘,網上有很多好的的博客寫這個,但很多都是要麼不直觀,要麼很雜亂沒有重點,今天我就來總結一下吧。帶有目錄,可以直接從目錄裏找自己需要的。
後面還有ABCDE\mathbb{字體ABCDE}{\color{Red}顏色}的修改方法
肯定也有總結不到的,大家有用到但這裏沒有的歡迎提出。
在這裏插入圖片描述

前言:1. 所有的Markdown公式的前後都要有個$ 如 $ 公式 $
2. $ $與公式之間不能有空格,可以看一下沒有空格: x2x^2 和有空格 $ x^2 $
3. 再下面的Markdown中我就不加$ $了,用的話直接複製過去加上 $ $就好

一、常用符號

數學符號

數學符號 Markdown
±\pm \pm
×\times \times
÷\div \div
\sum \sum
\prod \prod
\neq \neq
\leq \leq
\geq \geq
\cdot \cdot 點
\ast \ast 星號
\star \star
\rightarrow \rightarrow
\mid \mid 豎線

上下標

上下標 Markdown
x2x^2 x^2
ZyxZ^{yx} Z^{yx}
x2x_2 x_2
ZyxZ_{yx} Z_{yx}
分數 Markdown
7x+51+y2\frac{7x+5}{1+y^2} \frac{7x+5}{1+y^2}

根式

根式 Markdown
2\sqrt{2} \sqrt{2 }
3n\sqrt[n]{3} \sqrt[n]{3}

矢量

矢量 Markdown
ab=0\vec{a} \cdot \vec{b}=0 \vec{a} \cdot \vec{b}=0

省略號

省略號 Markdown
\cdots \cdots
\ddots \ddots
\vdots \vdots
f(x1,x2,,xn)=x12+x22++xn2f(x_1,x_2,\ldots,x_n) = x_1^2+x_2^2+\cdots+x_n^2

微積分

微積分 Markdown
\int \int
\iint \iint
\iiint \iiint
mn\int_m^n \int_m^n
01x2dx\int_0^1x^2dx \int_01x2dx
\rightarrow \rightarrow
lim\lim
limn+\lim_{n\rightarrow+\infty}
limn+1n\lim_{n\rightarrow+\infty}\frac{1}{n} \lim_{n\rightarrow+\infty}\frac{1}{n}
\infty \infty
\nabla \nabla

累加 累乘

累加 累乘 Markdown
in\sum_{i}^{n} \sum_{i}^{n}
i=0n1i2\sum_{i=0}^n \frac{1}{i^2} \sum_{i=0}^n \frac{1}{i^2}
i=0n\prod_{i=0}^n \prod_{i=0}^n
i=0n1i2\prod_{i=0}^n \frac{1}{i^2} \prod_{i=0}^n \frac{1}{i^2}

括號

括號 Markdown
(ok ) (ok)
[ok] [ok ]
ok\lang{ok}\rang \lang{ok}\rang 或 \langle, \rangle
ok\lvert{ok }\rvert \lvert{ok}\rvert
123\lVert{123}\rVert \lVert, \rVert
{564}\lbrace{564}\rbrace \lbrace, \rbrace 或 {, }
$\Bigg ( \bigg [ \Big \{\big\langle \left | \| \frac{a}{b} \| \right | \big \rangle\Big\}\bigg ] \Bigg )$

([{ab}])\Bigg ( \bigg [ \Big \{\big\langle \left | \| \frac{a}{b} \| \right | \big \rangle\Big\}\bigg ] \Bigg )

希臘字母

大寫 markdown 小寫 markdown
AA A α\alpha \alpha
BB B β \beta
Γ\Gamma \Gamma γ\gamma \gamma
Δ\Delta \Delta δ\delta \delta
EE E ϵ\epsilon \epsilon
εε \varepsilon
ZZ Z ζ\zeta \zeta
HH H η\eta \eta
Θ\Theta \Theta θ\theta \theta
II I ι\iota \iota
KK K κ\kappa \kappa
Λ\Lambda \Lambda λ\lambda \lambda
MM M μ\mu \mu
NN N ν\nu \nu
ΞΞ \Xi ξ\xi \xi
OO O ο\omicron \omicron
ΠΠ \Pi π\pi \pi
PP P ρ\rho \rho
Σ\Sigma \Sigma Σ\Sigma \sigma
TT T τ\tau \tau
υ\upsilon \Upsilon υ\upsilon \upsilon
Φ\Phi \Phi ϕ\phi \phi
φ\varphi \varphi
XX X χ\chi \chi
Ψ\Psi \Psi ψ\psi \psi
Ω\Omega \Omega ω\omega \omega

集合

集合 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} \hat{y}
yˇ\check{y} \check{y}
y˘\breve{y} \breve{y}

連線符號

連線符號 Markdown
a+b+c+d\overline{a+b+c+d} \overline{a+b+c+d}
a+b+c+d\underline{a+b+c+d} \underline{a+b+c+d}
a+b+c1.0+d2.0\overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0} \overbrace{a+\underbrace{b+c}{1.0}+d}^{2.0}

箭頭符號

箭頭符號
\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
\partial \partial
\Box \Box
\clubsuit \clubsuit
\diamondsuit \diamondsuit
\heartsuit \heartsuit
\spadesuit \spadesuit

在這裏插入圖片描述

二、數學表達式

分支公式

y={x,x0x2,x>0(1) y=\begin{cases} -x,\quad x\leq 0\\ x^2, \quad x>0 \end{cases} \tag{1}

$$
y=
\begin{cases}
-x,\quad x\leq 0\\
x, \quad x>0
\end{cases}
\tag{1}
$$

矩陣

無括號

123456789(1) \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1}

$$
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\tag{1}
$$

小括號

(123456789)(2)\left( \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right) \tag{2}

$$\left(
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right)
\tag{2}
$$

中括號

[123456789](3)\left[ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right] \tag{3}

$$\left[
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right]
\tag{3}
$$

大括號

{123456789}(4)\left\{ \begin{matrix} 1 & 2 & 3\\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right\} \tag{4}

$$\left\{
\begin{matrix}
1 & 2 & 3\\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix}
\right\}
\tag{4}
$$

帶省略號

[ababbbccc](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}

$$
\left[
\begin{matrix}
a & b & \cdots & a\\
b & b & \cdots & b\\
\vdots & \vdots & \ddots & \vdots\\
c & c & \cdots & c
\end{matrix}
\right]
\tag{5}
$$

帶橫線/豎線分割的矩陣

[123456789](6) \left[ \begin{array}{c|cc} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \tag{6}

$$
\left[
\begin{array}{c|cc}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{array}
\right]
\tag{6}
$$

[123456789](7) \left[ \begin{array}{c|cc} 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right] \tag{7}

$$
\left[
    \begin{array}{c|cc}
    1 & 2 & 3 \\ \hline
    4 & 5 & 6 \\
    7 & 8 & 9
    \end{array}
\right]
\tag{7}
$$

在這裏插入圖片描述在這裏插入圖片描述

{\color{Blue} 顏色}

語法
字體顏色︰{\color{色調}表達式}
背景顏色︰{\pagecolor{色調}表達式}
*注︰輸入時第一個字母必需以大寫輸入,如\color{OliveGreen}。

${\color{Blue}x^2}+{\color{Brown}2x} -{\color{OliveGreen}1}$

x2+2x1{\color{Blue}x^2}+{\color{Brown}2x} -{\color{OliveGreen}1}

x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}

x1,2=b±b24ac2ax_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}

字體

黑板粗體

$\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
正粗體
語法

$\mathbf{012…abc…ABC…}$

012abcABC\mathbf{012…abc…ABC…}
注:”花括號{}內只能使用拉丁字母和數字,不能使用希臘字母如\alpha等。斜粗體
斜體數字
語法

$\mathit{0123456789}$

0123456789\mathit{0123456789}

手寫體
語法

\mathcal{ABCabc…}

ABCabc\mathcal{ABCabc…}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章