\sum または \int 内の式を分割する

\sum または \int 内の式を分割する

次のように、多くの項の合計を複数の行に分割しようとしています。

\documentclass[12pt,a4paper]{book}
\usepackage{amsmath}
\begin{document}
\begin{align*}
        L &= \sum { A && \text{This equation sums ABC} \\
                    \times B \\
                    \times C  }
\end{align*}
\end{document}

しかし、私は理解していますMissing } inserted。動機は、が\textあまり右に押し込まれないようにすることです。

答え1

すでにコメントで @daleif が指摘しているように、 の後の資料を囲む不必要な中括弧のペアを削除する必要があります\sum。さらに、2 行目と 3 行目の資料の位置合わせポイントを必ず指定する必要があります。

ここに画像の説明を入力してください

\documentclass[12pt,a4paper]{book}
\usepackage{amsmath}
\begin{document}
\hrule % just to illustrate width of textblock
\begin{align*}
L &=     \sum   \text{A-stuff}   \tag*{This equation sums ABC} \\
  &\quad \times \text{B-stuff} \\
  &\quad \times \text{C-stuff}  
\end{align*}
\end{document}

答え2

使用aligned

\documentclass[12pt,a4paper]{book}
\usepackage{amsmath}
\begin{document}

\begin{align*}
L &= \sum \Bigl( \begin{aligned}[t]
                 & A \\
                 & \times B \\
                 & \times C \Bigr)
                 \end{aligned}
  && \text{This text is not so far}
\\
M &= ABC && \text{This text is not so far}
\end{align*}
Just for a check:
\begin{align*}
M &= ABC && \text{This text is not so far} \\
K &= XYZ && \text{This text is not so far}
\end{align*}

\end{document}

ここに画像の説明を入力してください

答え3

ありがとう。括弧に入れて、 \phantom代わりに\quad...

\documentclass[12pt,a4paper]{book}
\usepackage{amsmath}
\begin{document}

\begin{align*}
        L &= \sum \big( A \\
                    & \phantom{= \sum \big(} \times B \\
                    & \phantom{= \sum \big(} \times C
                \big)
\end{align*}

\end{document}

そしてそれはうまく機能します。 ここに画像の説明を入力してください

さて、次のようなことを行う方法はありますか:


        L &\setphantom{= \sum \big(} A \\
                    & \getphantom \times B \\
                    & \getphantom \times C
                \big)

関連情報