我有一组四个子方程,每个子方程都希望编号并左对齐。这些子方程中的第二和第三个太长,无法写成一行,因此我使用拆分环境在适当的位置手动添加换行符和适当的对齐方式。我不知道该怎么做。
以下是我现在所拥有的:
\begin{subequations}
\label{eq:omegai}
%
\begin{gather}
\label{eq:omega0}
\Omega_0 = \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} > \omega_t \right\}
\\
%
\label{eq:omega1}
\begin{split}
\Omega_1 = &\left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} > \omega_t \right\} \\
&\cup \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} > \omega_t \right\} \\
&\cup \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} \leq \omega_t \right\}
\end{split}
\\
%
\label{eq:omega2}
\begin{split}
\Omega_2 = &\left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} \leq \omega_t \right\} \\
&\cup \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} \leq \omega_t \right\} \\
&\cup \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} > \omega_t \right\}
\end{split}
\\
%
\label{eq:omega3}
\Omega_3 = \left\{\left(\omega_{12},\omega_{23}\right) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} \leq \omega_t \right\}
\end{gather}
%
\end{subequations}
我尝试过将gather
其改为align
,但只得到第一个和第四个方程式左对齐,而其他的都向右偏移。
答案1
使用align
,而不是gather
:
\documentclass{article}
\usepackage{amsmath}
\newcommand{\suchthat}{\mid}
\begin{document}
\begin{subequations}
\label{eq:omegai}
%
\begin{align}
\label{eq:omega0}
\Omega_0 ={}& \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} > \omega_t \}
\\
%
\label{eq:omega1}
\begin{split}
\Omega_1 ={}& \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} > \omega_t \} \\
& \cup \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} > \omega_t \} \\
&\cup \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} \leq \omega_t \}
\end{split}
\\
%
\label{eq:omega2}
\begin{split}
\Omega_2 ={}& \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} > \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} \leq \omega_t \} \\
& \cup \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} > \omega_t,\ \hat{\omega}_{31} \leq \omega_t \} \\
& \cup \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} > \omega_t \}
\end{split}
\\
%
\label{eq:omega3}
\Omega_3 ={}& \{(\omega_{12},\omega_{23}) \suchthat \hat{\omega}_{12} \leq \omega_t,\ \hat{\omega}_{23} \leq \omega_t,\ \hat{\omega}_{31} \leq \omega_t \}
\end{align}
%
\end{subequations}
\end{document}
诀窍是在方程式的上行括号右边={}&
找到一点。\cup
split
我已经删除了所有\left
内容,\right
它们在这里没有任何用处(它们实际上引入了不需要的空格)。