Latex公式编辑(子公式)

  • 多个子公式多行编号:子行有唯一编号
\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}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值