Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted
\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

share|improve this answer
add comment

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

share|improve this answer
    
That's kind of a hack. –  FUZxxl Apr 15 '11 at 17:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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