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.

I do have the following equations wich are aligned on the equal sign. Would it be possible to also align them on the R?

\begin{eqnarray}
  \delta O_{1x} &=& R \, ^E\omega_x \, \delta t \nonumber \\
  \delta O_{1y} &=& - R \, ^E\omega_y \, \delta t \nonumber
\end{eqnarray}

Thanks for answering.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Instead of eqnarray, you should use the environments provided by the amsmath package (refer to Avoid eqnarray!, by Lars Madsen); here's an option using alignat:

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{alignat*}{2}
  \delta O_{1x} &= & R \, ^E\omega_x \, \delta t \\
  \delta O_{1y} &= - &R \, ^E\omega_y \, \delta t 
\end{alignat*}

\end{document}
share|improve this answer
2  
And (as you know, but I just wanted to point this out) if you use the * version, you don't need the \nonumbers. –  Andrew Stacey Aug 5 '11 at 13:55
    
@Andrew: I was just editing my answer when you wrote your comment ;-) –  Gonzalo Medina Aug 5 '11 at 13:57
    
"Speedy fingers", that's me! Nah, I was half way through typing an answer when yours appeared so I had to find something wrong with it. –  Andrew Stacey Aug 5 '11 at 14:39
    
@Andrew: That's one of the most awful moments in this site: when in the middle of writting your own answer you see the dreadful message announcing that another answer has been posted. –  Gonzalo Medina Aug 5 '11 at 16:19
    
Thanks for your help guys and for letting me know that eqnarray is bad! –  Fabio Varesano Aug 6 '11 at 10:30
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.