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*}
  • You can use the environment flalign – Marco Daniel Mar 22 '17 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. – Ian Thompson Mar 22 '17 at 21:12
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.