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.

My code looks like this:

\begin{alignat}{2}
\theta^2&\equiv\frac{2m a^2\epsilon}{\hbar^2},\ \lambda&\equiv&\theta^{\frac{2p}{p+1}}\frac{E}{\epsilon},\\
E&=\lambda\epsilon\theta^{-\frac{2p}{p+1}},\ u&=&\theta^{\frac{1}{p+1}}\frac{x}{a}
\end{alignat}

And the picture looks like this: picture

Why is there extra space after lambda, and not after u? The first pair of equations in upper and lower row look good, why is second ones making an issue?

Thank you for help.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You should position the ampersands slightly different.

\documentclass{article}
\usepackage{mathtools}  % loads »amsmath«

\begin{document}
  \begin{alignat}{2}
    \theta^2 &\equiv \frac{2m a^2\epsilon}{\hbar^2}, & \lambda &\equiv \theta^{\frac{2p}{p+1}}\frac{E}{\epsilon},\\
    E &= \lambda\epsilon\theta^{-\frac{2p}{p+1}},\quad & u &= \theta^{\frac{1}{p+1}}\frac{x}{a} 
  \end{alignat}
\end{document}
share|improve this answer
    
Thanks, that seem to worked. I need to add blank space every time I want this effect in alignat? –  dingo_d Apr 18 '11 at 18:59
    
No. It's just a common practise for me to keep track of the alignments. –  Thorsten Donig Apr 18 '11 at 19: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.