3

Possible Duplicate:
How can I break an align environment for a paragraph?

I am new here, and quite new to LaTeX. I did search for an answer to this as I think it should be trivial, but I didn't find the answer yet. I have something like

\begin{align*}
y &= mx + c \\
\text{some text here. So} \\
c &= y-mx \\
\text{but } \\
1+2 &\neq 2 \\
\text{Finally} \\
3 &= 1+2\\
\end{align*}

My question is: How to I make all the \text{} be aligned on the left instead of the middle? Sorry for my ignorance!

David Carlisle
  • 757,742
Joe King
  • 193
  • Welcome to TeX.sx! I would simply put the text out of the align environment. – Corentin Oct 13 '12 at 09:08
  • 2
    Use \intertext{}, or \shortintertext{}. shortintertext requires the mathtools package. – Peter Grill Oct 13 '12 at 09:09
  • @Corentin Thank you ! But if I take the text out of the environment, now do I make all the equations align ? – Joe King Oct 13 '12 at 09:12
  • This question seems very similar to http://tex.stackexchange.com/questions/9577/how-can-i-break-an-align-environment-for-a-paragraph. Please take a look at it as the information there might help you. If so, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find answers quickly. If not, please edit your question here to explain why so that people can better focus their attention to help you. – egreg Oct 13 '12 at 09:12
  • @Joe King Sorry, I had not understood what you meant. Then the answer by Peter Grill works. – Corentin Oct 13 '12 at 09:17
  • @egreg thank you, you are correct, the answer to the question you linked to does answer my question, but I would never have thought of searching for "break an align environment for a paragraph". In my (probably naive) opinion, if someone is looking for an answer to this problem they would be more likely to search for the question I have worded. It's great that there exists an answer already, but if someone (like me) can't find it, then it's not so useful (to them). Thanks again ! – Joe King Oct 13 '12 at 09:59
  • @JoeKing The purpose of keeping a duplicate question with a pointer to the other one is exactly that somebody may have the same thought as you, so they can find this question and be redirected. So even duplicates are useful. Welcome again! – egreg Oct 13 '12 at 10:01
  • @egreg sorry I misunderstood. I thought you intended to delete my question entirely. My bad ! – Joe King Oct 13 '12 at 10:11

0 Answers0