Markdown 数学公式写法总结

markdown 数学公式写法总结

Markdown 中插入数学公式

单行公式
$...公式块...$

多行公式
$$...公式块...$$

1 希腊字母

字母 英文注音 大写 写法 小写 写法
阿尔法 alpha A A α \alpha
贝塔 beta C B β \beta
伽马 gamma Γ \Gamma γ \gamma
德尔塔 delta Δ \Delta δ \delta
伊普西龙 epsilon E E ϵ \epsilon
截塔 zeta Z Z ζ \zeta
艾塔 eta H H η \eta
西塔 theta Θ \Theta θ \theta
约塔 iota I I ι \iota
卡帕 kappa K K κ \kappa
兰布达 lambda Λ \Lambda λ \lambda
mu M M μ \mu
nu N N ν \nu
科西 xi Ξ \Xi ξ \xi
奥密克戎 omicron O O ο \omicron
pi Π \Pi π \pi
rho P P ρ \rho
西格玛 sigma Σ \Sigma σ \sigma
tau T T τ \tau
宇普西龙 upsilon Υ \Upsilon υ \upsilon
佛爱 phi Φ \Phi ϕ \phi
西 chi X X χ \chi
普西 psi Ψ \Psi ψ \psi
欧米伽 omega Ω \Omega ω \omega

2 上下标

2.1 上标
单个上标 写法 多个上标 写法
xy x^y xyz x^
2.2 下标
单个下标 写法 多个下标 写法
xy x_y xyz x_

3 括号

3.1 小括号
形式 写法
(1+1) ( )
(xy) \left( \right)
3.2 大括号
形式 写法
{1+1} \
{xy} \left\
3.3 方括号
形式 写法
[1+1] [ ]
[xy] \left[ \right]
3.5 尖括号
形式 写法
1+1 \langle \rangle
xy \left \langle \right \rangle
3.6 上取整
形式 写法
x \lceil \rceil
xy \left \ceil \right \rceil
3.7 下取整
形式 写法
x \lfloor \rfloor
xy \left \lfloor \right \rfloor

4 算术运算符

形式 写法
+ +
-
× \times
÷ \div
± \pm
\mp
\cdot
\ast
/ /
$ x
xyz¯ \overline

5 逻辑运算符

形式 写法
= =
> >
< <
\geq
\leq
\neq
\ngeq
\not \geq
\nleq
\not \leq
\approx
\equiv

6 集合运算

形式 写法
\in
\notin
\not \in
\subset
\supset
\subseteq
\supseteq
\subsetneq
\supsetneq
\not \subset
\not supset
\cup
\cap
\setminus
\bigodot
\bigotimes
R \mathbb
Z \mathbb
N \mathbb
\emptyset

7 数学符号

形式 写法
\infty
ı \imath
ȷ \jmath
a^ \hat
aˇ \check
a˘ \breve
a~ \tilde
a¯ \bar
a \vec
a´ \acute
a` \grave
a˚ \mathring
a˙ \dot
a¨ \ddot
a \dddot
\uparrow
\Uparrow
\downarrow
\Downarrow
\leftarrow
\Leftarrow
\rightarrow
\Rightarrow
1,2,n 1,2,\ldots,n
1,2,,n 1,2,\cdots,n
\vdots
\ddots
logxy \log_{x}
limxx2 $\displaystyle \lim_{x \to \infty}
xy \frac{\partial x}
f(x2)=t=x2f(t) f(x^2) \stackrel {t=x^2}{=}f(t)
% %
\nabla
Δ \Delta
\angle
\S \text
\flat
\natural
\sharp
\checkmark
\ll
\gg
\Leftrightarrow
\rightleftharpoons
\leftrightarrow
\therefore
\because

8 积分

形式 写法
\int
\iint
\iiint
\iiiint
t=1t=8 \int_{t=1}^
0 \int_0^
\oint
\oiint
\oiiint

9 连加、连乘

形式 写法
\sum
t=1n \sum_{t=1}^n
0 \sum_0^
i=0 $\displaystyle \sum^{\infty}_
\prod
i=1k \displaystyle \prod_{i=1}^k
\bigcup
\bigcap
minxy \min_
maxxy \max_

10 分式

形式 写法
xy \frac xy
xy \frac {x}
xymn \frac {xy}
a+b+1x+y1

x=x0+1x1+2x2+3x3+4...

$$
x = x_0 + \frac {1}{x_1 + \frac {2}{x_2 + \frac {3}{x_3 + \frac {4}{...}}}}
$$

11 根式

形式 写法
x+y \sqrt
x+y7 \sqrt[7]

12 多行分类

12.1 分段函数

f(x){2x,x00,x=0

$$
f(x)
\begin{cases}
2x,   & x \not = 0
0,    & x = 
\end{cases}
$$
12.2 公式换行

(1)a=b+cd+ef=g+h=i

$$
\begin{equation}\begin{split} 
a & = b+c-d \\ 
  & \quad +e-f \\ 
  & = g+h \\ 
  & = i 
\end{split}\end{equation}
$$
12.3 左大括号

x={f(x)x>1h(x)x=0g(x)x<0

$$
x = 
\left\{
\begin{matrix} 
f(x) & x > 1 \\ 
h(x) & x = 0 \\ 
g(x) & x < 0 
\end{matrix}
\right.
$$
12.4 右大括号

x=f(x)x>1h(x)x=0g(x)x<0}

$$
x = 
\left.
\begin{matrix} 
f(x) & x > 1 \\ 
h(x) & x = 0 \\ 
g(x) & x < 0 
\end{matrix}
\right\}
$$

13 矩阵

13.1 无括号矩阵

abcdefghi

$$
\begin{matrix} a & b & c \\ d & e & f \\ g & h & i \end{matrix}
$$
13.2 小括号矩阵

(abcdefghi)

$$
\begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix}
$$
13.3 中括号矩阵

[abcdefghi]

$$
\begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{bmatrix}
$$
13.4 大括号矩阵

{abcdefghi}

$$
\begin{Bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{Bmatrix}
$$
13.5 行列式

|abcdefghi|

$$
\begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix}
$$
13.6 模

abcdefghi

$$
\begin{Vmatrix} 
a & b & c \\
d & e & f \\
g & h & i
\end{Vmatrix}
$$

14 三角函数

样式 写法
sinx sinx
cosx cosx
tanx tanx
cotx cotx
secx secx
cscx cscx
arctanx arctanx
arcsinx arcsins
arccosx arccosx
arccotx arccotx
arcsecx arcsecx
arccscx arccscx

15 表格

15.1 普通表格
item1 item2 item3
0 1 2
3 4 5
$$
| item1 | item2 | item3 |
| :----: | :----: | :----: |
|   0    |   1    |    2   |
|   3    |   4    |    5   |
$$
15.2 仅表头有直线

numitem1item2item301234567891011

$$
\begin{array}{c|lcr}	% clr 分别表示表格左对齐、居中、右对齐
num & \text{item1} & \text{item2} & \text{item3} \\
\hline		% \hline 表示在本行前加入一条直线
0 & 1 & 2 & 3 \\
4 & 5 & 6 & 7 \\
8 & 9 & 10 & 11
\end{array}
$$

16 公式标记与引用

(1.1)x+y=0

$$
% \tag{num}		num 即是公式后边显示的编号
% \label{myLabel}	myLabel 即是引用,若后边想要进行引用时,可以写上,否则不写
x+y=0 \tag{001} \label{001}
$$

a+b=(1.1)1

$$
% 引用上述公式 x + y = 0
a+b \stackrel {\eqref{001}} = 1
$$

17 其他常用稀奇古怪符号

各种符号编码网站见 W3school

形式 写法 形式 写法
&euro; © &copy;
ƒ &fnof; ¬ &not;
&permil; ® &reg;
&bull; ¼ &frac14;
&trade; ¿ &iquest;
§ &sect; Ø &Oslash;
« &laquo; &forall;
» &raquo; &part;
&exist; ¢ &cent;
£ &pound; ͷ &#887;
Γ &Gamma; &#8251;
&#8252; &#8451;
&#8455; &#8456;
&#8457; &#8471
&#8486; &#8487;
&prop; &ang;
&and &or
&#8737; &#8767;
&cong; &#8904;
&#&#8905; &#&#8906;
&#9632; &#9633;
&#9646; &#9647;
&#9650; &#9651;
&#9654; &#9655;
&#9679; &#9675;
&loz;
posted @   悟道九霄  阅读(959)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示