MathJax 基本操作
基本运算
1.行内公式&整行公式
这个公式
Γ
(
n
)
=
(
n
−
1
)
!
∀
n
∈
N
\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N
Γ(n)=(n−1)!∀n∈N 是一个行内公式。
这个公式是一个整行公式:
f
(
x
1
,
x
x
,
…
,
x
n
)
=
x
1
2
+
x
2
2
+
⋯
+
x
n
2
f(x_1,x_x,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2
f(x1,xx,…,xn)=x12+x22+⋯+xn2
2.块级公式
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
常用字符
空格:
\;
a
  
b
a\;b
ab
\quad
a
b
a\quad b
ab
四则运算:
+ - \times \div
+
−
×
÷
+ - \times \div
+−×÷
\cdot
x
⋅
y
x\cdot y
x⋅y
括号 ( 大括号要转义 ):
( ) [ ] \{ \}
{
d
−
[
c
−
(
b
−
a
)
]
}
\{d-[c-(b-a)]\}
{d−[c−(b−a)]}
\Biggl( ) \biggl( ) \Bigl( ) \bigl( ) \bigr( )
(
(
(
(
(
x
)
)
)
)
)
\Biggl( \biggl( \Bigl( \bigl( (x) \bigr) \Bigr) \biggr) \Biggr)
(((((x)))))
省略号 ( 下对齐&中线对齐 ):
\ldots
x
1
,
x
2
,
x
3
,
…
,
x
n
x_1,x_2,x_3,\ldots,x_n
x1,x2,x3,…,xn
\cdots
1
+
2
+
3
+
⋯
+
100
1+2+3+\cdots+100
1+2+3+⋯+100
无限:
\infty
∞
\infty
∞
箭头:
示例 | 代码 | 示例 | 代码 |
---|---|---|---|
← \leftarrow ← | \leftarrow | ⇐ \Leftarrow ⇐ | \Leftarrow |
→ \rightarrow → | \rightarrow | ⇒ \Rightarrow ⇒ | \Rightarrow |
↔ \leftrightarrow ↔ | \leftrightarrow | ⇔ \Leftrightarrow ⇔ | \Leftrightarrow |
⟵ \longleftarrow ⟵ | \longleftarrow | ⟵ \longleftarrow ⟵ | \Longleftarrow |
⟶ \longrightarrow ⟶ | \longrightarrow | ⟹ \Longrightarrow ⟹ | \Longrightarrow |
⟷ \longleftrightarrow ⟷ | \longleftrightarrow | ⟺ \Longleftrightarrow ⟺ | \Longleftrightarrow |
↑ \uparrow ↑ | \uparrow | ↓ \downarrow ↓ | \downarrow |
↕ \updownarrow ↕ | \updownarrow |
希腊字符:
字符 | 表达式 | 字符 | 表达式 |
---|---|---|---|
α | \alpha | β | \beta |
γ | \gamma | δ | \delta |
ε | \epsilon | ζ | \zeta |
η | \eta | θ | \theta |
ι | \iota | κ | \kappa |
λ | \lambda | μ | \mu |
ν | \nu | ξ | \xi |
π | \pi | ρ | \rho |
σ | \sigma | τ | \tau |
υ | \upsilon | φ | \phi |
χ | \chi | ψ | \psi |
ω | \omega |
常用符号
上下标:
( )^{ } ( )_{ }
x
n
=
x
n
−
1
+
x
n
−
2
2
+
a
2
x_n = x_{n-1} + x_{n-2}^2 + a^2
xn=xn−1+xn−22+a2
开根号:
\sqrt[ ]{ }
n
m
\sqrt[m]{n}
mn
分数线:
\dfrac{ }{ }
a
1
+
a
2
+
a
3
+
⋯
+
a
n
b
\dfrac{a_1+a_2+a_3+\cdots+a_n}{b}
ba1+a2+a3+⋯+an
\frac{ }{ }
a
1
+
a
2
+
a
3
+
⋯
+
a
n
b
\frac{a_1+a_2+a_3+\cdots+a_n}{b}
ba1+a2+a3+⋯+an
{ }\over{ }
a
1
+
a
2
+
a
3
+
⋯
+
a
n
b
{a_1+a_2+a_3+\cdots+a_n}\over{b}
ba1+a2+a3+⋯+an
求和&求积:
\sum_{ }^{ }
∑
i
=
1
n
x
i
\sum_{i=1}^{n} x_i
i=1∑nxi
\prod_{ }^{ }
∏
i
=
0
n
1
x
2
\prod_{i=0}^n{1 \over {x^2}}
i=0∏nx21
积分:
\int_{ }^{ }
∫
0
∞
f
(
x
)
d
x
\int_0^\infty{f(x)dx}
∫0∞f(x)dx
向量:
\vec{ }
a
⃗
⋅
b
⃗
\vec a \cdot \vec b
a⋅b
方程组:
\begin{cases}
方程 \\
方程 \\
…
\end{cases}
{
a
1
x
+
b
1
y
+
c
1
z
=
d
1
a
2
x
+
b
2
y
+
c
2
z
=
d
2
a
3
x
+
b
3
y
+
c
3
z
=
d
3
\begin{cases} a_1x+b_1y+c_1z=d_1\\ a_2x+b_2y+c_2z=d_2\\ a_3x+b_3y+c_3z=d_3\\ \end{cases}
⎩⎪⎨⎪⎧a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
矩阵
\begin{bmatrix}
{ }&{ }&…&{ } \\
{ }&{ }&…&{ } \\
…
\end{bmatrix}
[
a
11
a
12
⋯
a
1
n
a
21
a
22
⋯
a
2
n
⋮
⋮
⋱
⋮
a
m
1
a
m
2
⋯
a
m
n
]
\begin{bmatrix} {a_{11}}&{a_{12}}&{\cdots}&{a_{1n}}\\ {a_{21}}&{a_{22}}&{\cdots}&{a_{2n}}\\ {\vdots}&{\vdots}&{\ddots}&{\vdots}\\ {a_{m1}}&{a_{m2}}&{\cdots}&{a_{mn}}\\ \end{bmatrix}
⎣⎢⎢⎢⎡a11a21⋮am1a12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn⎦⎥⎥⎥⎤
连线:
\overline{ }
\underline{ }
\overbrace{ }^{ }
\underbrace{ }_{ }
a
+
b
+
c
+
d
‾
a
+
b
+
c
+
d
‾
a
+
b
+
c
⎵
1.0
+
d
⏞
2.0
\overline{a+b+c+d} \underline{a+b+c+d} \overbrace{a+\underbrace{b+c}_{1.0}+d}^{2.0}
a+b+c+da+b+c+da+1.0
b+c+d
2.0
回归方程:
\hat{ }
y
t
^
=
a
+
b
x
\hat{y_t} = a + bx
yt^=a+bx
音调符:
\bar{ } \acute{ } \check{ } \grave{ }
a
ˉ
a
ˊ
a
ˇ
a
ˋ
\bar{a}\acute{a} \check{a} \grave{a}
aˉaˊaˇaˋ
参考:
[1] 各种数学符号 - Anscor - CSDN博客
[2] latex数学符号表
[3] AMS数学符号 - Anscor - CSDN博客
[4] LaTeX记录 —— 数学公式 - Anscor - CSDN博客
[5] LaTeX记录 —— 特殊符号 - Anscor - CSDN博客
[6] 使用LaTex写数学公式 - 苦笔的博客 - CSDN博客
[7] MathJax basic tutorial and quick reference - Mathematics Meta Stack Exchange