- 多个子公式多行编号:子行有唯一编号
\begin{subequations}
\begin{align}
a1 & = b1 + c1\\
a2 & = b2 + c2
\end{align}
\end{subequations}
- 多行子公式无编号:
\begin{subequations}
\begin{align*}
a1 & = b1 + c1\\
a2 & = b2 + c2
\end{align*}
\end{subequations}
- 多行公式,指定行数给出编号
\begin{subequations}
\begin{align}
a1 & = b1 + c1 \nonumber\\
& = b2 + c2\\
a2 & = b3 + c3 \nonumber\\
& = b4 + c4
\end{align}
\end{subequations}
- 分段函数:
\begin{subequations}
\begin{align}
y & =
\begin{cases}
a x^2 + b x + d, & \mbox{if}~x > 0 \\
cx + d, & \mbox{otherwise}
\end{cases}\\
z & =
\begin{cases}
mx + p, & \mbox{if}~x > 1 \\
nx + q, & \mbox{otherwise}
\end{cases}
\end{align}
\end{subequations}
- 分段行数,按照需求编号
需要加上包:\usepackage{cases}。其中每个行数都可以引用,使用label标记,不需要编号的,加上\notag
\begin{subequations}\label{eqn}
\begin{numcases}{\mbox{sample}~1:}
m = 3x + 2y + 5z \label{eqn1}\\
n = 2x + 5y + 3z \notag\\
p = 3x + 4y + 2z \label{eqn2}
\end{numcases}
\end{subequations}