Markdown数学语法详细总结
Markdown数学语法【详细总结】
Markdown数学语法
每一个看似的轻描淡写,都是背后无数汗水的挥洒!~ (致每位追求
卓越
的 奋斗者 们!)创作不易呀!~若感觉小码农写的 有点帮助 ,不求道友 留下
赞
,一个收藏
也是爱
, 哈哈哈 !!!
1.基本格式
1.行内公式
以
$
开头,以$
结尾。eg:
a b a^b
a
b
$a^b$
2.块级公式–行间公式
以
$$
开头,$$
结尾a b + d + d d d d d d d a^b+d+ddddddd\
a
b
d
ddddddd
$$a^b$$
3.角标
上标:
^
表示后面的内容的右上角a b a^b
a
b
下标:
_
表示后面的内容的右下角a b a_b
a
b
常用的公式总结:
数学公式 | Markdown语法 |
---|---|
a b a^b a b | $a^b$ |
∑ n = 1 N 6 y n \sum_{n=1}^N{6y^n} ∑ n = 1 N 6 y n | $\sum_{n=1}^N{6y^n}$ |
∏ n = 1 N 6 x n \prod_{n=1}^N{6x^n} ∏ n = 1 N 6 x n | $\prod_{n=1}^N{6x^n}$ |
∫ 0 6 f ( x ) d x \int^6_0{f(x)}{\rm d}x ∫ 0 6 f ( x ) d x | $\int^6_0{f(x)}{\rm d}x$ |
lim x → + ∞ x \lim_{x\to+\infty}x lim x → + ∞ x | $\lim_{x\to+\infty}x$ |
不码了…
4整体内容
数据的运算的多项式 写在
{}
中eg:
e x + 1 a r c t a n x + l n f ( x ) \frac{e^x+1}{arctanx+lnf(x)}
a
rc
t
an
x
l
n
f
(
x
)
e
x
1
$\frac{e^x+1}{arctanx+lnf(x)}$
5.多行公式
格式如下:公式显示在中间
$$
\begin{split}
x=&a-b-d \
y= &f-s-h \
\end{split}
$$
##语法
$$
\begin{split}
x=&a-b-d \\
y= &f-s-h \\
\end{split}
$$
解释:
\\
:表示换行&
:表示上下哪个位置对齐
,需要在两行需要对齐的位置都加上这个符号\tag{1}
:表示对公式的手动编号
是1split
:是一个公式环境,用于一个公式拆分成多行的情形,类似的还有equation
,align
*
:表示不自动编号,不加星号会自动编号。
equation
:(CSDN的Mark不支持!)格式:
KaTeX parse error: Can’t use function ‘$’ in math mode at position 26: …uation} g(x)=$̲\prod_{i=1,j=2}…
$$
\begin{equation}
g(x)=$\prod_{i=1,j=2}^n{(x_j-x_i)}$
\end{equation}
$$
align
(csdn支持aligned)x
a + b + c y
a + b \begin{align*} &x = a + b + c\ &y = a + b \end{align*}
x
=
a
b
c
y
=
a
b
$$ \begin{align*} &x = a + b + c\\ &y = a + b \end{align*} $$
6.分段函数
基本格式:
y
{ − x , x ≤ 0 x , x
0 y=\begin{cases} -x,\quad x\leq 0\ x, \quad x>0 \end{cases}
y
=
{
−
x
,
x
≤
0
x
,
x
0
$$
y=\begin{cases}
-x,\quad x\leq 0\\
x, \quad x>0
\end{cases}
$$
7.定界符
就是
()
、[]
、{}
等,可以通过big
、Big
、bigg
、Bigg
等调整大小,但是 用$\left(内容\right)$
调整大小基本格式:
( a + b b − a ) \left(\frac{a+b}{b-a}\right)
(
b
−
a
a
b
)
$\left(\frac{a+b}{b-a}\right)$
8.矩阵
[ 1 2 3 4 5 6 7 8 9 ] \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}
1
4
7
2
5
8
3
6
9
$$
\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{bmatrix}
$$
9.空格
语法汇总:
描述 | 数学公式 | Markdown格式 |
---|---|---|
累加 | ∑ n = 1 N 3 x n \sum_{n=1}^N {3x^n} ∑ n = 1 N 3 x n | $\sum_{n=1}^N {3x^n}$ |
累乘 | ∏ n = 1 N 3 x n \prod_{n=1}^N{3x^n} ∏ n = 1 N 3 x n | $\prod_{n=1}^N{3x^n}$ |
开方 | 100 5 \sqrt[5]{100} 5 100 | $\sqrt[5]{100}$ |
积分 | ∫ 1 5 f ( x ) d x \int^5_1{f(x)}{\rm d}x ∫ 1 5 f ( x ) d x | $\int^5_1{f(x)}{\rm d}x$ |
二重积分 | ∬ 1 5 f ( x ) d x \iint^5_1{f(x)}{\rm d}x ∬ 1 5 f ( x ) d x | $\iint^5_1{f(x)}{\rm d}x$ |
无穷 | ∞ \infty ∞ | $\infty$ |
极限 | lim n → + ∞ n \lim_{n\to+\infty}n lim n → + ∞ n | $\lim_{n\to+\infty}n$ |
加减 | ± | $\pm$ |
点乘 | ⋅ \cdot ⋅ | $\cdot$ |
乘 | × | $\times$ |
除 | ÷ \div ÷ | $\div$ |
右箭头 | → \rightarrow → | $\rightarrow$ |
上箭头 | ↑ \uparrow ↑ | $\uparrow$ |
左箭头 | ← \leftarrow ← | $\leftarrow$ |
下箭头 | ↓ \downarrow ↓ | $\downarrow$ |
用于带下标序列的省略号 | ⋱ \ddots ⋱ | $\ddots$ |
省略号 | ⋱ \ddots ⋱ | $\ddots$ |
垂直省略号 | ⋱ \ddots ⋱ | $\ddots$ |
斜省略号 | ⋱ \ddots ⋱ | $\ddots$ |
分数 | 分子 分母 \frac{分子}{分母} 分母 分子 | $\frac{分子}{分母}$ |
alpha | α \alpha α | $\alpha$ |
beta | β \beta β | $\beta$ |
gamma | γ \gamma γ | $\gamma$ |
lambda | λ \lambda λ | $\lambda$ |
theta | θ \theta θ | $\theta$ |
pi | π \pi π | $\pi$ |
Delta | Δ \Delta Δ | $\Delta$ |
Sigma | Σ \Sigma Σ | $\Sigma$ |
可以通过 \rm 来取消斜体 | f ( x ) f(x) f ( x ) f ( x ) \rm f(x) f ( x ) f ( x ) {\rm f}(x) f ( x ) | $f(x)$ $\rm f(x)$ ${\rm f}(x)$ |
花体 | a b c \mathcal{abc} ab c a b c \mathscr{abc} ab c | $\mathcal{abc}$ $\mathscr{abc}$ |
完结
参考链接: