矩阵
[ 1 3 4 0 2 1 ] \begin{bmatrix} 1 & 3 \\ 4 & 0 \\ 2 & 1 \end{bmatrix} 142301
\begin{bmatrix}
1 & 3 \\
4 & 0 \\
2 & 1
\end{bmatrix}
1 x x 2 1 y y 2 1 z z 2 \begin{matrix} 1 & x & x^2 \\ 1 & y & y^2 \\ 1 & z & z^2 \\ \end{matrix} 111xyzx2y2z2
\begin{matrix}
1 & x & x^2 \\
1 & y & y^2 \\
1 & z & z^2 \\
\end{matrix}
( 1 2 3 4 ) \begin{pmatrix}1&2\\3&4\\ \end{pmatrix} (1324)
\begin{pmatrix}1&2\\3&4\\ \end{pmatrix}
[ 1 2 3 4 ] \begin{bmatrix}1&2\\3&4\\ \end{bmatrix} [1324]
\begin{bmatrix}1&2\\3&4\\ \end{bmatrix}
{ 1 2 3 4 } \begin{Bmatrix}1&2\\3&4\\ \end{Bmatrix} {1324}
\begin{Bmatrix}1&2\\3&4\\ \end{Bmatrix}
( 1 a 1 a 1 2 ⋯ a 1 n 1 a 2 a 2 2 ⋯ a 2 n ⋮ ⋮ ⋮ ⋱ ⋮ 1 a m a m 2 ⋯ a m n ) \begin{pmatrix} 1 & a_1 & a_1^2 & \cdots & a_1^n \\ 1 & a_2 & a_2^2 & \cdots & a_2^n \\ \vdots & \vdots& \vdots & \ddots & \vdots \\ 1 & a_m & a_m^2 & \cdots & a_m^n \end{pmatrix} 11⋮1a1a2⋮ama12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn
\begin{pmatrix}
1 & a_1 & a_1^2 & \cdots & a_1^n \\
1 & a_2 & a_2^2 & \cdots & a_2^n \\
\vdots & \vdots& \vdots & \ddots & \vdots \\
1 & a_m & a_m^2 & \cdots & a_m^n
\end{pmatrix}
符号
希腊字母
字母 | 公式 |
---|---|
α | \alpha |
β | \beta |
γ | \gamma |
δ | \delta |
ε | \epsilon |
ε | \varepsilon |
ζ | \zeta |
η | \eta |
Θ | \theta |
λ | \lambda |
μ | \mu |
φ | \varphi |
ρ | \rho |
σ | \sigma |
ω | \omega |
Φ | \phi |
数学符号
圆周率 Π
\pi
求和 Σ
∑ i = 1 m \sum_{i=1}^m ∑i=1m
\sum_{i=1}^m
求导符号 ə
\partial
R 4 ∗ 2 \mathbb{R}^{4*2} R4∗2
\mathbb{R}^{4*2}
根号
12 3 \sqrt[3]{12} 312
\sqrt[3]{12}
向量箭头
A B → \overrightarrow{AB} AB
\overrightarrow{AB}
连续乘积
∏ i = 1 m \prod_{i=1}^m ∏i=1m
\prod_{i=1}^m
运算符号
点乘 a ⋅ b a \cdot b a⋅b
a \cdot b
叉乘 a × b a \times b a×b
a \times b
同或 a ⊙ b a \odot b a⊙b
a \odot b
a ⊗ b a \otimes b a⊗b
a \otimes b
关系符号
≠ \ne =
\ne
或者
\neq
≪
\ll
≪
⋘
\lll
⋘
≫
\gg
≫
⋙
\ggg
⋙
\ll \lll
\gg \ggg
⩽
\leqslant
⩽
⩾
\geqslant
⩾
\leqslant
\geqslant
其他
…
\dots # 靠近底线三个点
\cdots # 中间三个点
\vdots # 竖着三个点
\ddots # 斜着三个点
花体字母
R
\mathbb{R}
R
L
\mathbb{L}
L
R
\mathcal{R}
R
L
\mathcal{L}
L
R
\mathscr{R}
R
L
\mathscr{L}
L
\mathbb{R}\mathbb{L}
\mathcal{R}\mathcal{L}
\mathscr{R}\mathscr{L}
各种帽子
A ^ \hat{A} A^
\hat{A}
A ^ \widehat{A} A
\widehat{A}
A ~ \tilde{A} A~
\tilde{A}
A ~ \widetilde{A} A
\widetilde{A}
A ‾ \overline{A} A
\overline{A}
A ‾ \underline{A} A
\underline{A}
A ⏞ \overbrace{A} A
\overbrace{A}
A ⏟ \underbrace{A} A
\underbrace{A}
b a \overset{a}{b} ba
\overset{a}{b}
b a \underset{a}{b} ab
\underset{a}{b}
A ← \overleftarrow{A} A
\overleftarrow{A}
A → \overrightarrow{A} A
\overrightarrow{A}
空格
1. 使用 \ 表示空格
以及调整空格的大小
a
b
a \qquad b
ab
quad空格 a \qquad b
两个m的宽度
a
b
a \quad b
ab
quad空格 a \quad b
一个m的宽度
a
b
a \ b
a b
大空格 a\ b
1/3m宽度
中等空格 a;b 2/7m宽度
小空格 a,b 1/6m宽度
没有空格 ab
紧贴 a!b 缩进1/6m宽度
\quad、1em、em、m代表当前字体下接近字符‘M’的宽度。
2. 指定长度,长距离缩进
& \hspace{3cm} # 缩进 3 cm
箭头
→
\to
\rightarrow
\longrightarrow # 长的向右箭头
←
\leftarrow
\longleftarrow
格式
等号对齐
\begin{align}
1+5 &= 2+3 \\
&= 6 \\
\end{align}
\begin{align}
\sqrt{37} & = \sqrt{\frac{73^2-1}{12^2}} \\
& = \sqrt{\frac{73^2}{12^2}\cdot\frac{73^2-1}{73^2}} \\
& = \sqrt{\frac{73^2}{12^2}}\sqrt{\frac{73^2-1}{73^2}} \\
& = \frac{73}{12}\sqrt{1 - \frac{1}{73^2}} \\
& \approx \frac{73}{12}\left(1 - \frac{1}{2\cdot73^2}\right)
\end{align}
\begin{align}
f(x) &= \left(x^3\right)+\left(x^3+x^2+x^1\right)+\left(x^3+x^2 \right)\\
f'(x) &= \left(3x^2+2x+1\right)+\left(3x^2+2x\right)\\
f''(x) &= \left(6x+2\right)\\
\end{align}
字体加粗
加粗的文字 \textbf{加粗的文字} 加粗的文字
\textbf{加粗的文字}
字体大小
H
e
l
l
o
L
a
t
e
x
.
\tiny Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\scriptsize Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\footnotesize Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\small Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\normalsize Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\large Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\Large Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\LARGE Hello Latex.
HelloLatex.
H
e
l
l
o
L
a
t
e
x
.
\huge Hello Latex.
HelloLatex.
\tiny Hello Latex.
\scriptsize Hello Latex.
\footnotesize Hello Latex.
\small Hello Latex.
\normalsize Hello Latex.
\large Hello Latex.
\Large Hello Latex.
\LARGE Hello Latex.
\huge Hello Latex.
颜色
e r r o r \color{red}{error} error
\color{red}{error}
高亮
\bbox[yellow]
{
e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n
\qquad (1)
}
\bbox[5px,border:2px solid red]
{
e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n
\qquad (2)
}
\bbox[yellow,5px,border:2px solid red]
{
e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n
\qquad (1)
}
方程组
{ 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{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}
分段函数
f(n) =
\begin{cases}
n/2, & \text{if $n$ is even} \\
3n+1, & \text{if $n$ is odd}
\end{cases}
参考链接
http://mohu.org/info/symbols/symbols.htm
https://www.luogu.com.cn/blog/IowaBattleship/latex-gong-shi-tai-quan
语雀 LaTeX 数学公式举例:https://www.yuque.com/yuque/gpvawt/brzicb