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.

Using

$\begin{array}{ccc}
x & := & \phantom{ a + } b + c\\
y & := & a \phantom{ + b } + c\\
z & := & a + b \phantom{ + c }
\end{array}$

I get

some not quite beautiful equation array

which is not quite what I hoped for as my "phantoms" don't take as much space as expected.

How can I correct this?

Thanks!

share|improve this question

1 Answer 1

up vote 7 down vote accepted

In the final part of the first row, try \phantom{a+{}}b+c to make the first plus sign act like a "real" math-binary element. Similarly, you'll also need to adjust the second row to a\phantom{{}+b}+c.

share|improve this answer
    
Works like magic. Thanks a lot! –  j.p. Aug 18 '11 at 12:58
    
You're welcome! Note that I added to my post to provide code for the second line. –  Mico Aug 18 '11 at 13:01
    
Seeing the first line, I was able to guess the 2nd line. Thanks again! –  j.p. Aug 18 '11 at 13:03
    
@jug: I guess you then also figured out how to modify the 3rd line! :-) –  Mico Aug 18 '11 at 14:00

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.