常用 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}^mi=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 

连续乘积

∏ i = 1 m \prod_{i=1}^mi=1m

\prod_{i=1}^m

其他

\dots  # 靠近底线三个点
\cdots # 中间三个点
\vdots # 竖着三个点
\ddots # 斜着三个点

花体字母

R \mathbb{R}RL \mathbb{L}L
R \mathcal{R}RL \mathcal{L}L
R \mathscr{R}RL \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 bab
quad空格 a \qquad b 两个m的宽度
a b a \quad bab
quad空格 a \quad b 一个m的宽度
a   b a \ ba 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)
}

参考链接

http://mohu.org/info/symbols/symbols.htm
语雀 LaTeX 数学公式举例:https://www.yuque.com/yuque/gpvawt/brzicb


版权声明:本文为weixin_46034990原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。