将拆分环境左对齐

将拆分环境左对齐

这是我的代码

\begin{equation*}
\Pi_1(X)=\Bigg\langle a_i, b_i, g_j, h\Bigg|
\begin{split}
&\prod_{i=1}^g[a_i,b_i]\prod_{j=1}^kq_j=1, g_0^bh=1,\\
&g_i^{\alpha_i}h^{\beta_i}=1, [h,q_j]=[h,a_i]=[h,b_i]=1 \\
\end{split}\Bigg\rangle.
\end{equation*}

这就是我得到的 在此处输入图片描述 我怎样才能消除所有间距?

答案1

您在找这个吗?

在此处输入图片描述

\documentclass[12pt,a4paper]{article}
\usepackage{mathtools}
\begin{document}
    \begin{equation*}
        \Pi_1(X)=\Bigg\langle a_i, b_i, g_j, h\Bigg|%
        \begin{multlined}
            \prod_{i=1}^g[a_i,b_i]\prod_{j=1}^kq_j=1, g_0^bh=1,\\
            g_i^{\alpha_i}h^{\beta_i}=1, [h,q_j]=[h,a_i]=[h,b_i]=1 \\
        \end{multlined}\Bigg\rangle.
    \end{equation*}
\end{document}

答案2

使用aligned而不是split

在此处输入图片描述

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\[
  \Pi_1(X) = \Bigg\langle a_i, b_i, g_j, h \Bigg|
  \begin{split}
    & \prod_{i = 1}^g[a_i,b_i] \prod_{j = 1}^k q_j = 1, g_0^b h = 1,  \\
    & g_i^{\alpha_i} h^{\beta_i} = 1, [h,q_j] = [h,a_i] = [h,b_i] = 1
  \end{split}
  \Bigg\rangle.
\]

\[
  \Pi_1(X) = \Biggl\langle a_i, b_i, g_j, h \Biggm|
  \begin{aligned}
    & \prod_{i = 1}^g[a_i,b_i] \prod_{j = 1}^k q_j = 1, g_0^b h = 1,  \\
    & g_i^{\alpha_i} h^{\beta_i} = 1, [h,q_j] = [h,a_i] = [h,b_i] = 1
  \end{aligned}
  \Biggr\rangle.
\]

\end{document}

相关内容