\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)

관련 정보