1

I'm using align, and I would like the equations to be left aligned, but when I write a single & to left align, they are placed right beside the \Leftrightarrow.

How can I fix this?

Here's my code:

\begin{align*}
& \left(\dfrac{a}{2}\right)^2\cdot\pi+\left(\dfrac{b}{2}\right)^2  
\cdot\pi-\left(\dfrac{\sqrt{a^2+b^2}}{2}\right)^2\cdot\pi+ab &=ab\\
\Leftrightarrow & \dfrac{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi-\dfrac  
{a^2+b^2}{4}\cdot\pi+ab &=ab\\
\Leftrightarrow & \dfrac{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi-\left(\dfrac
{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi\right)+ab &=ab\\
\Leftrightarrow &  ab&=ab
\end{align*}
2
  • You can use the environment flalign Mar 22, 2017 at 21:09
  • Or use & \Leftrightarrow rather than \Leftrightarrow & if you want the equations to start at the same point, without being flush against the left margin. Mar 22, 2017 at 21:12

1 Answer 1

2

I think this is what you want, using alignat. Note an align(at) environment with n alignment points requires 2n – 1 &, not n.

\documentclass[x11names]{article}
\usepackage{amsmath}

\begin{document}

\begin{alignat*}{2}
&\biggl(\dfrac{a}{2}\biggr)^2\cdot\pi+\left(\dfrac{b}{2}\right)^2
\cdot\pi-\left(\dfrac{\sqrt{a^2+b^2}}{2}\right)^2\cdot\pi+ab & &=ab\\
\Leftrightarrow{} &\dfrac{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi-\dfrac
{a^2+b^2}{4}\cdot\pi+ab & &=ab\\
 \Leftrightarrow{} & \dfrac{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi-\left(\dfrac
{a^2}{4}\cdot\pi+\dfrac{b^2}{4}\cdot\pi\right)+ab & &=ab\\
\Leftrightarrow{}&ab& & =ab
\end{alignat*}

\end{document} 

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .