Markdown的常用语法讲解传送门
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LaTeX\LaTeX{}LATE X是一种强大的排版系统,本文为LaTeX\LaTeX{}LATE X的数学公式的一些常用语法讲解。
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
行内公式:
用$可以在文本中插入行内数学公式,例如:E=mc2E = mc^2E=mc2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
居中公式:
用$$或者来显示公式,例如:
∫01x2 dx\int_{0}^{1} x^{2} \, dx ∫01 x2dx
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
编号:
用\tag{...}给公式添加编号,例如:
f(x)=a+b(1)f(x) = a + b \tag{1} f(x)=a+b(1)
f2(x)=a−b(2)f2(x) = a - b \tag{2} f2(x)=a−b(2)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
一些符号:
拉丁字母、阿拉伯数字和 +-*/= 运算符均可以直接输入获得,\cdot表示乘法的圆点,\cdots表示省略号,\neq表示不等号,\equiv表示恒等于,\bmod表示取模,\geq表示大于等于,\leq表示小于等于,例如:
x+2−3∗4/6=4/y+x⋅y0≠1x≡x1=9 mod 21+2+⋯+n=n(n−1)/2a≥b,c≤dx+2-3*4/6=4/y + x\cdot y \\ 0 \neq 1 \quad x \equiv x \quad 1 = 9 \bmod 2 \\ 1+2+ \cdots +n=n (n-1)/2\\ a \geq b , c \leq d x+2−3∗4/6=4/y+x⋅y0=1x≡x1=9mod21+2+⋯+n=n(n−1)/2a≥b,c≤d
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
分隔公式:
用,在行内分隔公式,\\将公式分多行,例如:
a+b=c,c+d=ea∗b=da+b=c , c+d=e \\ a*b=d a+b=c,c+d=ea∗b=d
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
上下标、括号:
用 ^{...} 表示上标, _{...} 表示下标,例如:
x2+3ai+jx^{2+3} \\ a_{i+j} x2+3ai+j
用\overbrace{...}^{...}表示上大括号,用\underbrace{...}^{...}表示下大括号,例如:
1+2+3⏞6a,b,c⏟abc\overbrace{1+2+3}^{6} \\ \underbrace{a,b,c}_{abc} 1+2+3 6 abca,b,c
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
分数,根号:
用 \frac{...}{...} 来创建分数,用 \sqrt{...} 来创建根号,例如:
316\frac{3}{\sqrt{16}} 16 3
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
求和:
用 \sum_{...}^{...} ,表示求和符号,等号前跟上公式,中间为过程,最后为结果,例如:
∑i=13i2=1∗1+2∗2+3∗3=14\sum_{i=1}^{3} i^2 = 1*1+2*2+3*3=14 i=1∑3 i2=1∗1+2∗2+3∗3=14
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
矩阵:
用matrix、bmatrix、vmatrix、pmatrix创建矩阵,例如:
1,2,34,5,67,8,9\begin{matrix} 1,2,3 \\ 4,5,6 \\ 7,8,9 \end{matrix} 1,2,34,5,67,8,9
[1,2,34,5,67,8,9]\begin{bmatrix} 1,2,3 \\ 4,5,6 \\ 7,8,9 \end{bmatrix} 1,2,34,5,67,8,9
∣1,2,34,5,67,8,9∣\begin{vmatrix} 1,2,3 \\ 4,5,6 \\ 7,8,9 \end{vmatrix} 1,2,34,5,67,8,9
(1,2,34,5,67,8,9)\begin{pmatrix} 1,2,3 \\ 4,5,6 \\ 7,8,9 \end{pmatrix} 1,2,34,5,67,8,9
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
方程组:
使用 cases 创建方程组,例如:
{x+y=2x−y=1,x≥1\begin{cases} x + y = 2 \\ x - y = 1 ,& x\geq1 \end{cases} {x+y=2x−y=1, x≥1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
公式组合:
使用 equation* 创建公式组合,例如:
F(n)={0,n=11,n=2F(n−1)+F(n−2),n>2\begin{equation*} F(n) = \begin{cases} 0 ,& n=1 \\ 1 ,& n=2 \\ F(n-1) + F(n-2) ,& n>2 \end{cases} \end{equation*} F(n)=⎩⎨⎧ 0,1,F(n−1)+F(n−2), n=1n=2n>2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
这只是一些基本的数学公式,LaTeX\LaTeX{}LATE X 提供了广泛的数学符号和环境,你可以根据需要进行扩展和深入学习。
可能有很多遗漏和错误,深感抱歉。