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.

1 Answer 1

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
    Commented Jan 10, 2011 at 7:26
  • @yunone: UUUh, sorry, I totally misread it. Will update it
    – user2478
    Commented Jan 10, 2011 at 7:35
  • 7
    perhaps you should clarify that it simply works by using double &s. Commented Mar 21, 2011 at 19:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .