Latex ---加上下標,各類常用符號,公式排版

各種符號: https://blog.csdn.net/qfire/article/details/81382048

 

_表示下標,^表示上標。

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}

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章