Hi all,

How do I get the equals sign to line up under each other like they would when writing by hand.

Example:

Another example:

It would be nice if the equals were lined up.

Cheers all.

Printable View

- Jul 7th 2011, 07:02 AMSrengamLining up the equals sign on several lines of workings.
Hi all,

How do I get the equals sign to line up under each other like they would when writing by hand.

Example:

Another example:

It would be nice if the equals were lined up.

Cheers all. - Jul 7th 2011, 07:26 AMPlatoRe: Lining up the equals sign on several lines of workings.
[tex]\begin{align*} \cos (2x) &= \cos^2(x)-\sin^2(x) \\ &=1-2\sin^2(x) \\ &= 2\cos^2(x)-1 \end{align*}[/tex]

gives

- Jul 7th 2011, 11:11 AMSrengamRe: Lining up the equals sign on several lines of workings.
Hi there,

I had a little trouble getting your method to work for me. I was however able to achieve it using the tabbing environment. Once I get a bit better with LaTeX I will return to your suggested method, but for now I can carry on with the tabbing method.

Many thanks. - Jul 7th 2011, 11:21 AMPlatoRe: Lining up the equals sign on several lines of workings.