
次のように、多くの項の合計を複数の行に分割しようとしています。
\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)