LaTeX は複数の数式をリストします

1.gather使用方法

基本的な使い方、計算式番号

\begin{gather}
a+b = b+a \\
a\times b = b \times a
\end{gather}

a + b = b + aa × b = b × a \begin{集合} a+b = b+a \\ a\times b = b \times a \end{集合}ある+b=b+あるある×b=b×
gather*番号は使用できません

\begin{gather*}
a+b = b+a \\
a\times b = b \times a
\end{gather*}

a + b = b + aa × b = b × a \begin{集合*} a+b = b+a \\ a\times b = b \times a \end{集合*}ある+b=b+あるある×b=b×
または、指定した行に番号が付けられないようにするには、\\前にコマンドを使用します。 a + b = b + aa × b = b × aa − b = − b + a \begin{gather} a+b = b+a \notag \\ a\ 倍 b = b \times a \notag \\ ab=-b+a \\ \end{gather}\notag
ある+b=b+あるある×b=b×あるあるb=b+

2.align環境

gather環境内の数式の各行は実行中であり、align等号やその他の関係記号に従って位置を揃えることができます。

\begin{align}
a+b &= b+a \\
a\times b  + 1 &= b \times a + 1
\end{align}

a + b = b + aa × b + 1 = b × a + 1 \begin{align} a+b &= b+a \\ a\times b + 1 &= b \times a + 1 \end{align }ある+bある×b+1=b+ある=b×ある+1

3.alignat環境

alignatこの環境では間隔が手動で増加され、2 列のグループで各行に配置される数式の数を示すパラメータがあります。たとえば、列間隔を 1 (1em) に設定します\quad

\begin{alignat}{2}
x &= \sin t & \quad & \text{水平方向} \\
y &= \cos t && \text{垂直方向}
\end{alignat}

x = sin ⁡ t 水平方向 y = cos ⁡ t 垂直方向 \begin{alignat}{2} x &= \sin t & \quad & \text{水平方向} \\ y &= \cos t && \text{垂直方向} \end{alignat}バツはい=t=コス水平方向垂直方向

4.cases環境

数行の数式を中括弧で囲みます。

\begin{equation}
f(x) = \begin{cases}
1, & \text{if } x \in [0, 1]; \\
0, & \text{if } x \in [-1, 0).
\end{cases}
\end{equation}

f ( x ) = { 1 、 x ∈ [ 0 , 1 ] の場合 ; 0 、 x ∈ [ − 1 , 0 ) の場合。\begin{equation} f(x) = \begin{cases} 1, & \text{if } x \in [0, 1]; \\ 0, & \text{if } x \in [-1, 0)。\end{ケース} \end{式}f ( x )={ 1 0×の場合 [ 0 ,1 ] ;×の場合 [ 1 0 )

おすすめ

転載: blog.csdn.net/mathlxj/article/details/131633248