常用 Latex 公式总结

矩阵

[ 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} 111a1a2ama12a22am2a1na2namn

\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} R42
\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 ab

a \cdot b	

叉乘 a × b a \times b a×b

a \times b

同或 a ⊙ b a \odot b ab

a \odot b

a ⊗ b a \otimes b ab

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

悄悄地努力

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值