TransWikia.com

Aligning Split environment left

TeX - LaTeX Asked by Dinisaur on July 21, 2021

Here’s my code

begin{equation*}
Pi_1(X)=Bigglangle a_i, b_i, g_j, hBigg|
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}Biggrangle.
end{equation*}

And here’s what I get
enter image description here
How can I eliminate all that spacing?

2 Answers

Use aligned instead of split:

enter image description here

documentclass{article}

usepackage{amsmath}

begin{document}

[
  Pi_1(X) = Bigglangle 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}
  Biggrangle.
]

[
  Pi_1(X) = Biggllangle 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}
  Biggrrangle.
]

end{document}

Correct answer by Werner on July 21, 2021

Are you looking for this?

enter image description here

documentclass[12pt,a4paper]{article}
usepackage{mathtools}
begin{document}
    begin{equation*}
        Pi_1(X)=Bigglangle a_i, b_i, g_j, hBigg|%
        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}Biggrangle.
    end{equation*}
end{document}

Answered by Diaa on July 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP