markdown中公式使用
数学公式, 一般分为两种形式:内联公式和公式块,即行内公式和行间公式:
内联公式:
公式块:
公式中\begin{equation}...\end{equation} 表示方程开始与结束;\begin{split}...end{split} 表示开始多行公式开始与结束;\\ 表示回车到下一行,& 表示对齐的位置
公式中\left \{ ... \right.表示方程的左边和右边,\begin{array}...\end{array} 表示方程组的开始与结束,再配合表示方程组得到公式。.表示空格, 但a..b与a.b都会显示ab。如需要显示a b,可用\增加些许空隙, \;与\quad{}增加较宽间隙, \qqaud{}增加更大间隙。
可以使用\\[4ex] 代替\\ 来将分类之间的垂直间隔变大。其中[4ex] 中的数字代表间隔距离,1ex 相当于原始距离,数字越大,距离越大。
在 {align} 中灵活组合 \text 和 \tag 语句。\tag 语句编号优先级高于自动编号。
name
大写
code
小写
code
alpha
\alpha
beta
\beta
gamma
\Gamma
\gamma
delta
\Delta
\delta
epsilon
\epsilon
zeta
\zeta
eta
\eta
theta
\Theta
\theta
iota
\iota
kappa
\kappa
lambda
\Lambda
\lambda
mu
\mu
nu
\nu
xi
\Xi
\xi
omicron
\omicron
pi
\Pi
\pi
rho
\rho
sigma
\Sigma
\sigma
tau
\tau
upsilon
υυ
\upsilon
phi
\Phi
\phi
chi
\chi
psi
\Psi
\psi
omega
\Omega
\omega
ell_p
ℓp
\ell_p
变量专用形式\var-
code
小写
code
大写
var-code
变量
\epsilon
\varepsilon
\theta
\Theta
\vartheta
\rho
\varrho
\sigma
\Sigma
\varsigma
\phi
\Phi
\varphi
code
显示
code
显示
code
显示
code
显示
\langle
\rangle
\lceil
\rceil
\lfloor
\rfloor
\lbrace
\rbrace
例1: f(x,y,z) = 8y^2z \left( 8+\frac{8x+2}{1+y^2} \right) 显示为:
例2: 积分:\left. \frac{ {\rm d}y}{ {\rm d}x} \right| _{x=0} 显示为:
例3: 偏导: \frac{\partial^{2}y}{\partial x^{2}} 显示为:
\frac或者\over 的使用
\cfrac的使用
code
显示
code
显示
code
显示
\pm
\times
\div
\nmid
\mid
\cdot
\ldots
\cdots
\circ
\bigodot
\bigotimes
\bigoplus
\geq
\neq
\approx
\leq
\lt
<
\gt
>
\sum
\prod
\coprod
\approx
\sim
\equiv
\star
\ast
\bullet
\prec
\succ
\oplus
\preceq
\succeq
\pmod n
(mod n)
求和
连乘
显示为:
省略号
显示为:
显示为:
其他
arg\,\max_{c_k} 显示为:
可以在运算符前面加\not,如\not\lt :
\ldots 位置稍低,\cdots 位置居中
code
name
显示
code
显示
code
显示
\emptyset
空集
\in
\notin
\subset
子集
\supset
\supseteq
\subseteq
子集
\bigcap
\bigcup
\setminus
差集
\cap
\cup
\varnothing
\bigvee
\bigwedge
\subsetneq
非空集
\biguplus
code
显示
code
显示
code
显示
\log
log
\lg
lg
\ln
ln
code
显示
code
显示
code
显示
30^\circ
30∘
\bot
\angle A
∠A
\sin
sin
\cos
cos
\tan
tan
\csc
csc
\sec
sec
\cot
cot
\arcsin
arcsin
\arccos
arccos
\arctan
arctan
code
显示
code
显示
code
显示
\int
\iint
\iiint
\iiiint
\oint
\prime
\lim
lim
\infty
\nabla
积分
极限
显示为:
code
显示
code
显示
code
显示
\because
\therefore
\forall
\exists
\not\subset
\not<
\not>
\not=
\land
\lnot
\exists
\lor
\forall
\top
\bot
\vdash
\vDash
显示为:
code
显示
code
显示
code
显示
code
显示
\rightarrow
\leftarrow
\longrightarrow
\longleftarrow
\Rightarrow
\Leftarrow
\Longrightarrow
\Longleftarrow
\uparrow
\downarrow
\mapsto
\to
\Uparrow
\Downarrow
\Longleftrightarrow
name
code
显示
code
显示
code
显示
排列
\binom{n+1}{2k}
{n+1 \choose 2k}
范围
\infty
\aleph_o
ℵo
\nabla
范围
\Im
\Re
\begin{array}{列样式}…\end{array} 形式来创建表格,列样式可以是clr 表示居中,左,右对齐,还可以使用| 表示一条竖线。表格中各行使用\\ 分隔,各列使用& 分隔。使用\hline 在本行前加入一条直线
,\ddots:
,\vdots:
来省略矩阵中的元素
@>>> 代表右箭头、@<<< 代表左箭头、@VVV 代表下箭头、@AAA 代表上箭头、@= 代表水平双实线、@| 代表竖直双实线、@.代表没有箭头,在 @>>> 的 >>> 之间任意插入文字即代表该箭头的注释文字