文章目录
1 公式上下标
上标:将次幂放在两个^ 中间,例如 n 2 n^2 n2:
$n^2$
下标:将角标放在两个~ 中间,例如 R i R_i Ri
$R_i$
2 数学公式位置
$$ 公式居中$$
公 式 居 中 公式居中 公式居中
3 各种运算及符号
1.四则运算
a
+
b
a+b
a+b $a+b$
a
−
b
a-b
a−b$a-b$
a
∗
b
a*b
a∗b $a*b$
a
⋅
b
a\cdot b
a⋅b $a\cdot b$
a
b
\frac{a}{b}
ba $\frac{a}{b}$
a
×
b
a\times b
a×b a\times b
2.幂指对
x
n
x^n
xn $x^n$
x
n
x^n
xn $x^n$
a
x
a^x
ax $a^x$
log
a
b
\log_a^b
logab $\log_a^b$
ln
x
\ln x
lnx $\ln x$
由此可以知道
上标用’^’,下标用’_’;
如果上标或者下表不止一个符号,请用’{}’括起来;
3.根号,省略号,向量,特殊符号
x
\sqrt x
x $\sqrt x$
x
n
\sqrt[n]{x}
nx $\sqrt[n]{x}$
…
\dots
… $\dots$
x
⃗
\vec x
x $\vec x$
x
ˉ
\bar{x}
xˉ $bar{x}$
→
\to
→ $\to$
α
\alpha
α $\alpha $
θ
i
\theta_i
θi $\theta_i $
a
≥
b
a \geq b
a≥b $a \geq b $
a
≤
b
a \leq b
a≤b $a \leq b $
由此可以知道,键盘不能直接输入的符号,用’\英文单词’
4.累加,累乘
∑
i
=
1
n
a
i
2
x
i
\sum_{i=1}^{n} a_i^2x_i
∑i=1nai2xi $\sum_{i=1}^{n} a_i^2x_i$
∑
i
=
1
n
a
i
2
x
i
\displaystyle\sum_{i=1}^{n} a_i^2x_i
i=1∑nai2xi $\displaystyle\sum_{i=1}^{n} a_i^2x_i$
∏
i
=
1
n
a
i
2
x
i
\prod_{i=1}^{n} a_i^2x_i
∏i=1nai2xi $\prod_{i=1}^{n} a_i^2x_i$
∏
i
=
1
n
a
i
2
x
i
\displaystyle\prod_{i=1}^{n} a_i^2x_i
i=1∏nai2xi $\displaystyle\prod_{i=1}^{n} a_i^2x_i$
5.矩阵
1
2
3
4
5
6
\begin{matrix} 1&2&3\\ 4&5&6\end{matrix}
142536 $\begin{matrix} 1&2&3\\ 4&5&6\end{matrix}$
[
1
2
3
4
5
6
]
\begin{bmatrix} 1&2&3\\ 4&5&6\end{bmatrix}
[142536] $\begin{bmatrix} 1&2&3\\ 4&5&6\end{bmatrix}$
(
1
2
3
4
5
6
)
\begin{pmatrix} 1&2&3\\ 4&5&6\end{pmatrix}
(142536) $\begin{pmatrix} 1&2&3\\ 4&5&6\end{pmatrix}$
[
1
1
1
]
\begin{bmatrix} 1&&\\ &1&\\&&1\end{bmatrix}
⎣⎡111⎦⎤ $\begin{bmatrix} 1&&\\ &1&\\&&1\end{bmatrix}$
6.公式中更改颜色
∑
i
=
1
n
a
i
2
x
i
\displaystyle\sum_{i=1}^{n}\color{red}{a_i^2}x_i
i=1∑nai2xi$\displaystyle\sum_{i=1}^{n}\color{red}{a_i^2}x_i$
7.符号(大括号,空格)
括号:
{
}
\{\}
{} $\{\}$
f
=
{
1
2
(9)
f= \begin{cases} 1\\ 2 \tag{9} \end{cases}
f={12(9)
$$ f= \begin{cases} 1\\ 2 \tag{9} \end{cases} $$
空格:
8 集合
真包含 \subset ⊂
包含 \subseteq ⊆
\supset ⊃
\in ∈
\cap ∩
\cup ∪
\mid ∣
\notin ∉
4 希腊字母表
5 插图
两个图并行显示
![](https://img-blog.csdnimg.cn/ca56f176f1324878a99a82bef400129b.png)
![](https://img-blog.csdnimg.cn/83911794584842aeb13442c50ce3f472.png)
<figure class="center">
<img src="https://img-blog.csdnimg.cn/ca56f176f1324878a99a82bef400129b.png" width="250"/>
<img src="https://img-blog.csdnimg.cn/83911794584842aeb13442c50ce3f472.png" width="270"/>
</figure>