Latex使用方法
Latex公式前后需插入$
,如果公式独占一行且居中则插入$$
下标: \(a_n\) 的输入为 $a_n$
上标: \(A^{-1}\) 的输入为 $A^{-1}$
左侧角标: \(\sideset{^n_m}{}{\mathop{\mathrm{H}}}\) 的输入为 $\sideset{^n_m}{}{\mathop{\mathrm{H}}}$
正上正下标: \(\mathop{\theta}\limits_{i=1}^2\) 的输入为 $\mathop{\theta}\limits_{i=1}^2$
角度: \(90^{\circ}\) 的输入为 $90^{\circ}$
分数: \(\frac{a}{b}\) 的输入为 $\frac{a}{b}$
求和: \(\sum\limits_{x=0}^{+\infty}\frac{1}{x^2}\) 的输入为 $\sum\limits_{x=0}^{+\infty}\frac{1}{x^2}$
积分: \(\int_0^1 x^2 dx\) 的输入为 $\int_0^1 x^2 dx$
取极限: \(\lim\limits_{n\to\infty}x_n\) 的输入为 $\lim\limits_{n\to\infty}x_n$
各种帽子:
\(\hat{A}\) 的输入为 $\hat{A}$
\(\widehat{A}\) 的输入为 $\widehat{A}$
\(\tilde{A}\) 的输入为 $\tilde{A}$
\(\widetilde{A}\) 的输入为 $\widetilde{A}$
\(\overline{A}\) 的输入为 $\overline{A}$
\(\underline{A}\) 的输入为 $\underline{A}$
\(\overset{a}{b}\) 的输入为 $\overset{a}{b}$
\(\underset{a}{b}\) 的输入为 $\underset{a}{b}$
\(\overleftarrow{A}\) 的输入为 $\overleftarrow{A}$
\(\overrightarrow{A}\) 的输入为 $\overrightarrow{A}$
矩阵:\(\begin{bmatrix} 1 & 0\\ 0 & 1\\ 1 & 1\\ \end{bmatrix}\) 的输入为
$\begin{bmatrix}
1 & 0\\
0 & 1\\
1 & 1\\
\end{bmatrix}$
大型矩阵:\(\begin{bmatrix} a_{11} & \cdots & a_{1n}\\ \vdots & \ddots & \vdots\\ a_{n1} & \cdots & a_{nn}\\ \end{bmatrix}\) 的输入为
$\begin{bmatrix}
a_{11} & \cdots & a_{1n}\\
\vdots & \ddots & \vdots\\
a_{n1} & \cdots & a_{nn}\\
\end{bmatrix}$
对角矩阵:\(\begin{bmatrix} \lambda_1 & & & \\ & \lambda_2 & & \\ & & \ddots & \\ & & & \lambda_n\\ \end{bmatrix}\) 的输入为
$\begin{bmatrix}
\lambda_1 & & & \\
& \lambda_2 & & \\
& & \ddots & \\
& & & \lambda_n\\
\end{bmatrix}$
矩阵等式:\(\begin{bmatrix} 0 & -1\\ 1 & 0 \\ \end{bmatrix} \begin{bmatrix} 1\\ 0\\ \end{bmatrix}=\begin{bmatrix} 0\\ 1\\ \end{bmatrix}\) 的输入为:
$\begin{bmatrix}
0 & -1\\
1 & 0 \\
\end{bmatrix}
\begin{bmatrix}
1\\
0\\
\end{bmatrix}=\begin{bmatrix}
0\\
1\\
\end{bmatrix}$
行列式:\(\left| \begin{array}{cccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right|\)的输入为
$\left|
\begin{array}{cccc}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{array}
\right|$