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 have the following code:

\begin{align*}
m^+\cdot k^+ &= m^+\cdot k+m^+ &\text{by M2}\\
&= m\cdot k+k+m^+ &\text{since $k\in B$}\\
&= m\cdot k+(k+m^+) \\
&= m\cdot k+(k^{+}+m) &\text{by the second result}\\
&= m\cdot k+m+k^+ &\text{commutativity of addition}\\
&= m\cdot k^{+}+k^+ 
\end{align*}

but the text is all flushed right, but I would prefer it to be flush left to be closer to the actual equations.

alt text

Is there an easy fix for this? Thanks.

share|improve this question

1 Answer 1

up vote 6 down vote accepted
\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{align*}
m^+\cdot k^+ &= m^+\cdot k+m^+   &&\text{by M2}\\
             &= m\cdot k+k+m^+   &&\text{since $k\in B$}\\
             &= m\cdot k+(k+m^+) \\
             &= m\cdot k+(k^{+}+m)&& \text{by the second result}\\
             &= m\cdot k+m+k^+    &&\text{commutativity of addition}\\
             &= m\cdot k^{+}+k^+ 
\end{align*}

\end{document}
share|improve this answer
1  
Thanks for your response, but I edited it to look as such, and nothing changed. Also, I'm sure I'm using the amsmath package, so I don't think that is the reason for no difference. I put the new code in my original question. –  yunone Jan 10 '11 at 7:26
    
@yunone: UUUh, sorry, I totally misread it. Will update it –  Herbert Jan 10 '11 at 7:35
    
Thanks, that worked perfectly. –  yunone Jan 10 '11 at 7:41
4  
perhaps you should clarify that it simply works by using double &s. –  0sh Mar 21 '11 at 19:59

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.