
저는 다음 소스를 사용하고 있습니다.
\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}
나는 첫 번째 줄이 두 번째 줄보다 더 멀리 확장되어 요소 사이에 적절한 간격을 두고 잘 정렬된 수식을 얻을 것으로 기대합니다. 대신 나는 이것을 얻습니다 :
내가 도대체 뭘 잘못하고있는 겁니까?
답변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}
당신이 거기에서 얻은 것을 정확히 나에게 알려줍니다.