TransWikia.com

Which one should I use: begin{align} or begin{aligned}?

TeX - LaTeX Asked on July 13, 2021

Which one should I use: begin{align} or begin{aligned}?

3 Answers

If you have a series of equations that you want to have mutual alignment, then you would use align. If the equations are part of a larger equation, then aligned is the right environment.

I often will use begin{equation}begin{aligned} ... end{aligned}end{equation} to give a single equation number to a group, for example if I'm showing steps.

Answered by TH. on July 13, 2021

align is used for entering to math-mode while aligned is used for multiple horizon alignment. For example

 begin{align}
 begin{aligned}
    2x+3 &= 7 & 2x+3-3 &= 7-3 
    2x &= 4 & frac{2x}2 &= frac42
    x &= 2
 end{aligned}
 end{align}

ps. the example is adapted from Math Mode document of Herbert Voß.

For grouping the multiple lines equation, you should use gather or multline.

Answered by S. Boonto on July 13, 2021

You can use align inside subequation to get the numbering (1a) and (1b). Then you can refer the the equation system with (1) and to the subequations directly.

begin{subequations}  
begin{align}  
a &= b   
c &= d  
end{align}  
end{subequations}

Answered by Markus Klein on July 13, 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