7

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:

Example for wat I tried.

Now, how can I do this in (La)TeX?

14
\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} 

enter image description here

5

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

enter image description here

  • That's kind of a hack. – FUZxxl Apr 15 '11 at 17:03

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.