我们在用markdown写文档时有时候少不了需要插入一些公式,然而markdown公式输入远没有word这么直观,有很多复杂的格式和符号的英语缩写需要记忆,经常是刚用完,过几天不用又都忘记了,因此在这里将数学公式的Latex编辑方式做一个整理,以方便自己和读者今后使用。
分数,平方
算式
markdown
7x+51+y2" role="presentation" style="position: relative;">7x+51+y27x+51+y2
\frac{7x+5}{1+y^2}
下标
算式
markdown
z=zl" role="presentation" style="position: relative;">z=zlz=zl
z=z_l
省略号
省略号
markdown
⋯" role="presentation" style="position: relative;">⋯⋯
\cdots
行间公式(使用两个$包含公式可以独立一行)
行间公式
markdown
ddxeax=aeax∑i=1n(Xi−X¯)2" role="presentation" style="position: relative;">ddxeax=aeax∑ni=1(Xi−X¯¯¯¯)2ddxeax=aeax∑i=1n(Xi−X¯)2
$\frac{d}{dx}e^{ax}=ae^{ax}\quad \sum_{i=1}^{n}{(X_i - \overline{X})^2}$
开根号
算式
markdown
2;3n" role="presentation" style="position: relative;">2–√;3–√n2;3n
\sqrt{2};\sqrt[n]{3}
矢量
算式
markdown
a→⋅b→=0" role="presentation" style="position: relative;">a⃗ ⋅b⃗ =0a→⋅b→=0
\vec{a} \cdot \vec{b}=0
微积分
算式
markdown
∫32x2dx" role="presentation" style="position: relative;">∫23x2dx∫32x2dx
\int ^2_3 x^2 {\rm d}x
∬" role="presentation" style="position: relative;">∬∬
\iint
∭" role="presentation" style="position: relative;">∭∭
\iiint
∮" role="presentation" style="position: relative;">∮∮
\oint
\varoiint" role="presentation" style="position: relative;">\varoiint\varoiint
\oint
d" role="presentation" style="position: relative;">dd
\mathrm{d}
′" role="presentation" style="position: relative;">′′
\prime
lim" role="presentation" style="position: relative;">limlim
\lim
∞" role="presentation" style="position: relative;">∞∞
\infty
∂" role="presentation" style="position: relative;">∂∂
\partial
∂f(x,y)∂x|x=0" role="presentation" style="position: relative;">∂f(x,y)∂x∣∣x=0∂f(x,y)∂x|x=0
\left.\frac{\partial f(x,y)}{\partial x}\right
∑" role="presentation" style="position: relative;">∑∑
\sum
极限
算式
markdown
limn→+∞n" role="presentation" style="position: relative;">limn→+∞nlimn→+∞n
\lim_{n\rightarrow+\infty} n
累加
算式
markdown
∑1i2" role="presentation" style="position: relative;">∑1i2∑1i2
\sum \frac{1}{i^2}
累乘
算式
markdown
∏1i2" role="presentation" style="position: relative;">∏1i2∏1i2
\prod \frac{1}{i^2}
给公式编号,如: (1)
$$e^{i\theta}=cos\theta+\sin\theta i\tag{1}$$
(1)eiθ=cosθ+isinθ" role="presentation" style="position: relative;">eiθ=cosθ+isinθ(1)(1)eiθ=cosθ+isinθ
矩阵
$$
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix} \tag{1}
$$
(1)123456789" role="presentation" style="position: relative;">147258369(1)(1)123456789
带括号的矩阵
$$
\left[
\begin{matrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{matrix} \right]\tag{2}
$$
(2)[123456789]" role="presentation" style="position: relative;">⎡⎣⎢147258369⎤⎦⎥(2)(2)[123456789]
符号
形式
pmatrix
(1324)
bmatrix
[1324]
Bmatrix
{1324}
vmatrix
|1324|" role="presentation" style="position: relative;">|1324||1324|
Vmatrix
||1 3 2 4||
希腊字母
大写
markdown
小写
markdown
A
A
α
\alpha
B
B
β
\beta
Γ
\Gamma
γ
\gamma
Δ
\Delta
δ
\delta
E
E
ϵ
\epsilon
ε
\varepsilon
Z
Z
ζ
\zeta
H
H
η
\eta
Θ
\Theta
θ
\theta
I
I
ι
\iota
K
K
κ
\kappa
Λ
\Lambda
λ
\lambda
M
M
μ
\mu
N
N
ν
\nu
Ξ
\Xi
ξ
\xi
O
O
ο
\omicron
Π
\Pi
π
\pi
P
P
ρ
\rho
Σ
\Sigma
σ
\sigma
大写
markdown
小写
markdown
T
T
τ
\tau
Υ
\Upsilon
υ
\upsilon
Φ
\Phi
ϕ
\phi
φ
\varphi
X
X
χ
\chi
Ψ
\Psi
ψ
\psi
Ω
\Omega
ω
\omega
三角函数
三角函数
markdown
sin
\sin
对数函数
对数函数
算式
markdown
ln15" role="presentation" style="position: relative;">ln15ln15
\ln15
log210" role="presentation" style="position: relative;">log210log210
\log_2^{10}
lg7" role="presentation" style="position: relative;">lg7lg7
\lg7
关系运算符
运算符
markdown
±
\pm
×
\times
÷
\div
∑
\sum
∏
\prod
≠
\neq
≤
\leq
≥
\geq
括号
运算符
markdown
大括号: {a+x}
\lbrace a+x \rbrace
尖括号: ⟨x⟩" role="presentation" style="position: relative;">⟨x⟩⟨x⟩
\langle x \rangle
上取整: ⌈x2⌉" role="presentation" style="position: relative;">⌈x2⌉⌈x2⌉
\lceil \frac{x}{2} \rceil
下取整: ⌊x⌋" role="presentation" style="position: relative;">⌊x⌋⌊x⌋
\lfloor x \rfloor
原始括号:{∑i=0ni2=2ax2+1}" role="presentation" style="position: relative;">{∑ni=0i2=2ax2+1}{∑i=0ni2=2ax2+1}
\lbrace \sum_{i=0}^{n}i^{2}=\frac{2a}{x^2+1} \rbrace
全包括号:{∑i=0ni2=2ax2+1}" role="presentation" style="position: relative;">{∑ni=0i2=2ax2+1}{∑i=0ni2=2ax2+1}
\left\lbrace \sum_{i=0}^{n}i^{2}=\frac{2a}{x^2+1} \right\rbrace
后续添加更新中
手机扫一扫
移动阅读更方便
你可能感兴趣的文章