# How to produce aligned math with an extra symbol on the left.

In school, our teacher requires us to put a ⇔ sign on the left of our equations, when we do a tranformation on the equation. Usually, I use an align context to format multiple transformations of an equation, but I don't know, how to add that extra sign on the left. In the best case, want them to be all align on the same line, like in this image: Now, how can I do this in (La)TeX?

## 2 Answers

\documentclass{article}

\usepackage{amsmath}
\def\LRA{\Leftrightarrow\mkern40mu}
\pagestyle{empty}

\begin{document}

\begin{alignat}{2}
\LRA &&     A + B &= C + D \\
\LRA && C + D + F &= Y + K \\
\LRA &&         E &= F     \\
&&         X &= Z
\end{alignat}

\end{document} Here's one with eplain:

\input eplain
\leftdisplays % instead of displays being centered, align them at left
\leqalignno{% sets the last column on the left (despite given at right) 2x^2+bx+c&=0\cr x^2+{b\over x}x&=-{c\over2}&\Leftrightarrow\cr x^2+{b\over x}x+{b^2\over4x^2}&={b^2-4xc}&\Leftrightarrow\cr \Bigl(x+{b\over 2x}\Bigr)^2&={b^2-4xc\over4x^2}&\Leftrightarrow\cr x+{b\over 2x}&={\pm\sqrt{b^2-4xc}\over2x}&\Leftrightarrow\cr }
\bye • That's kind of a hack. – FUZxxl Apr 15 '11 at 17:03