_
表示下标,^
表示上标。
1 如果在文中插入特殊符号需要加 $$
eg: $G_{s}$
效果: Gs
2 如果在公式中加特殊符号直接加就行
\begin{align} % 公式
G_{s} \cup G_{e} = G_{s}
G_{s} \cap G_{e} = G_{e}
\end{align}
数学符号
https://www.cnblogs.com/jins-note/p/9513075.html
不等于
\not =
常用符号
\cdot 小圆点
\bullet 大圆点
\ast 六角星
点乘:a \cdot b
叉乘:a \times b
除以:a \div b
分数: \frac{}{}
:
\left\{ \frac{a}{b} \right\}
{ab}{ab}
上述出处: https://blog.csdn.net/wangmeitingaa/article/details/88825621
数学符号 https://jingyan.baidu.com/article/4b52d702df537efc5c774bc9.html
\cup 并
\cap 交
花括号括多行
插入带大括号的多行公式,效果如下:
LaTex编辑如下:
\begin{equation}
\label{eq6}
[x_{i}]=\left\{
\begin{aligned}
x_{ac} & , & \mu_{a}(x_{i})\geq \mu_{b}(x_{i}), \\
x_{bc} & , & \mu_{a}(x_{i})< \mu_{b}(x_{i}).
\end{aligned}
\right.
\end{equation}
\begin{equation}
\label{eq6}
[x_{i}]=\left\{
\begin{aligned}
x_{ac} & , & \mu_{a}(x_{i})\geq \mu_{b}(x_{i}), \\
x_{bc} & , & \mu_{a}(x_{i})< \mu_{b}(x_{i}).
\end{aligned}
\right.
\end{equation}
公式对齐问题
基础知识:
换行: \\
去掉一行公式的标号,在后面加 \nonumber即可
1 公式居中
\begin{gather*}
f_{FGM-S} = C(C(f_{e}^{i}) \ast C^{2}(f_{s}^{i-1}))\\
f_{FGM-E} = C(A(Cat(C(f_{s}^{i}), C^{2}(f_{e}^{i-1})))
\end{gather*}
加星会无编号
\begin{gather*}
f_{FGM-S} = C(C(f_{e}^{i}) \ast C^{2}(f_{s}^{i-1}))\\
f_{FGM-E} = C(A(Cat(C(f_{s}^{i}), C^{2}(f_{e}^{i-1})))
\end{gather*}
\begin{gather}
f_{FGM-S} = C(C(f_{e}^{i}) \ast C^{2}(f_{s}^{i-1}))\\
f_{FGM-E} = C(A(Cat(C(f_{s}^{i}), C^{2}(f_{e}^{i-1})))
\end{gather}
不加星会有编号,在latex中可以看到
\begin{gather}
f_{FGM-S} = C(C(f_{e}^{i}) \ast C^{2}(f_{s}^{i-1}))\\
f_{FGM-E} = C(A(Cat(C(f_{s}^{i}), C^{2}(f_{e}^{i-1})))
\end{gather}
2 按照等号对齐
\begin{align}
sum &= a+b+c+d \\
sub &= a-b
\end{align}
加入&在等号前
\begin{align}
sum &= a+b+c+d \\
sub &= a-b
\end{align}
3 等式居左
\begin{flalign}
&a&
&a& \\
&a& \nonumber \\
\end{flalign}
\begin{flalign}
&表达式&
&表达式& \\
&表达式& \nonumber \\
\end{flalign}
4 整体左对齐、
\begin{eqnarray}
&&f_{s}^{i-1} = C(f_{FFM-S}^{i-1} + f_{FGM-S}^{i-1})\\
&&= C(C(f^{i-1}_{s})(f_{s}^{i-1})))\\
&&f_{e}^{i-1} = C(f_{FFM-E}^{i-1} + f_{FGM-E}^{i-1}) \\
&&= C(C(f^{i-1}_{e})(f_{e}^{i-1}))) )
\end{eqnarray}
\begin{eqnarray}
&&f_{s}^{i-1} = C(f_{FFM-S}^{i-1} + f_{FGM-S}^{i-1})\\
&&= C(C(f^{i-1}_{s})(f_{s}^{i-1})))\\
&&f_{e}^{i-1} = C(f_{FFM-E}^{i-1} + f_{FGM-E}^{i-1}) \\
&&= C(C(f^{i-1}_{e})(f_{e}^{i-1}))) )
\end{eqnarray}