
私は以下のソースを使用しています:
\usepackage[fleqn]{amsmath}
\begin{equation}
\begin{aligned}
\notag
&t_m & = & \alpha_1(m_1) & \oplus & \alpha_2(m_2) & \oplus & \cdots & \oplus & \alpha_{m-1}(m_{m-1}) & \oplus & \alpha_{m}(0) \oplus \gamma_{m-1}(0) \oplus m_m0^* \\
&t_a & = & \alpha_1(a_1) & \oplus & \alpha_2(a_2) & \oplus & \cdots & \oplus & \alpha_{a-1}(a_{a-1}) & \oplus & \alpha_{a}(a_a0^*)
\end{aligned}
\end{equation}
要素間の間隔が適切で、最初の行が 2 番目の行よりも長く、きれいに整列した数式が得られると期待していました。しかし、次の結果になりました。
何が間違っているのでしょうか?
答え1
おそらく、alignedat
ここの環境の方が適しているのでしょう。
\documentclass[11pt,fleqn]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{mathtools} % loads »amsmath«
\begin{document}
\begin{equation*}
\begin{alignedat}{5}
t_m &= \alpha_1(m_1) &&\oplus\alpha_2(m_2) &&\oplus\cdots\oplus\alpha_{m-1}(m_{m-1}) &&\oplus\alpha_{m}(0) &&\oplus \gamma_{m-1}(0) \oplus m_m0^* \\
t_a &= \alpha_1(a_1) &&\oplus\alpha_2(a_2) &&\oplus\cdots\oplus\alpha_{a-1}(a_{a-1}) &&\oplus\alpha_{a}(a_a0^*)
\end{alignedat}
\end{equation*}
\end{document}
詳しい説明については、こちらをご覧ください »数学モード" 書類。
答え2
あなたのコードは私にとっては完全に正常に動作します。ただし、アンパサンドのペアが欠落していることが問題の原因であると思われます。たとえば、次のコード (\oplus
との間にアンパサンドが欠落していることに注意してください\alpha_2(m_2)
) では、
\begin{equation}
\begin{aligned}
\notag
&t_m &= &\alpha_1(m_1) & \oplus \alpha_2(m_2) & \oplus & \cdots & \oplus & \alpha_{m-1}(m_{m-1}) & \oplus & \alpha_{m}(0) \oplus \gamma_{m-1}(0) \oplus m_m0^* \\
&t_a &= &\alpha_1(a_1) & \oplus \alpha_2(a_2) & \oplus & \cdots & \oplus & \alpha_{a-1}(a_{a-1}) & \oplus & \alpha_{a}(a_a0^*)
\end{aligned}
\end{equation}
あなたが得たものと全く同じものを私に与えます。