6

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.

7
\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}
3
  • 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
    – user2478
    Jan 10 '11 at 7:35
  • 6
    perhaps you should clarify that it simply works by using double &s. Mar 21 '11 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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