大括號中的子方程式和數組

大括號中的子方程式和數組

我需要這樣的東西:

\left\{
first line  (1a)
second line (1b)
third line  (1c)
\right.

所有行應左對齊

答案1

(更新根據艾格雷格的讚揚。謝謝!

第一個例子是恩菲克給出的伯納德如果省略則無效超載載入時的選項恩菲克包裹。對於由提供的乳膠文件伯納德,完全沒有問題。然而,當我\usepackage[overload]{empheq}在 IEEEtrans 中使用並加載了許多其他套件時,它會凍結pdflatex我的電腦上的,我不明白為什麼,所以我加載它而沒有overload選項。這是empheq不帶選項加載時的版本overload\empheqlbrace是大左括號。\,只是用於添加額外的空間;預設值太緊。):

\begin{subequations}
    \begin{empheq}[left={K(A)=\empheqlbrace\,}]{align}
      & (I \otimes e^A) \psi\left(A^T \oplus (-A) \right) \\
      & (e^{A^T/2} \otimes e^{A/2}) \operatorname{sinch}\left(\frac{1}{2}[A^T \oplus (-A)]\right) \\
      & \frac{1}{2}(e^{A^T} \oplus e^A) \tau\left(\frac{1}{2}[e^T \oplus (-A)]\right),
    \end{empheq}
\end{subequations}

其輸出如下圖所示: 示範影像


對於有關引用的問題,它可以開箱即用,例如,請參閱以下程式碼:

\documentclass[a4paper,10pt]{article}

\usepackage{amsmath}
\usepackage{empheq}

\begin{document}
We refer to the subequation (\ref{eq:2}) and the whole equation (\ref{eq:all}).
\begin{subequations}
  \label{eq:all}
    \begin{empheq}[left={K(A)=\empheqlbrace\,}]{align}
      & (I \otimes e^A) \psi\left(A^T \oplus (-A) \right)
        \label{eq:1} \\
      & (e^{A^T/2} \otimes e^{A/2}) \operatorname{sinch}\left(\frac{1}{2}[A^T
        \oplus (-A)]\right)
        \label{eq:2}\\
      & \frac{1}{2}(e^{A^T} \oplus e^A) \tau\left(\frac{1}{2}[e^T \oplus
        (-A)]\right),
        \label{eq:3}
    \end{empheq}
\end{subequations}
\end{document}

這使

答案2

兩種解決方案:一種使用empheq套件和align環境,另一種使用套件subnumcases中的環境cases。我必須調整兩者中支架的間距,因為我發現預設值不太好(第一種情況太小,第二種情況太大):

    \documentclass{article}

    \usepackage[utf8]{inputenc}
    \usepackage[overload]{empheq}
    \usepackage{cases} 

    \begin{document}

    \begin{subequations}
    \begin{align}[left = \empheqlbrace\,]
      & a = b \\
       & c = d
    \end{align}
    \end{subequations}

    \begin{subnumcases}{}
    \!\! a = b \\
    \!\! c = d
    \end{subnumcases}

    \end{document} 

在此輸入影像描述

相關內容