# unable to left align the equations

I see many example about aligning a set of equations to the left, but none them works for me. The set looks like

\usepackage{amsmath}
....
\begin{flalign} A_{l-side} &= 1+2 \\ B_{both-side} &= 3+4+5+6 \\ \end{flalign}


Then I get this error

 Runaway argument?
A_{l-side} &= 1+2 \\ B_{both-side} &= 3+4+5+6 \\
! Paragraph ended before \flalign was complete.
<to be read again>
\par
l.72

?


Who can interpret the error?!

• The blank line inside of equation environments is not permitted. – Steven B. Segletes Jul 31 '14 at 10:06

Maybe you are looking for something like that

Code:

\documentclass{article}
\usepackage{amsmath}

\usepackage{blindtext}% dummy text

\begin{document}
\blindtext
\begin{flalign}
A_{l-side} &= 1+2&\\
B_{both-side} &= 3+4+5+6
\end{flalign}
\blindtext
\end{document}


I have only added an & at the end of the first line. Note that there should be no blank line inside the math environment.

Or may be that is what you want

Code

\documentclass{article}
\usepackage{amsmath}

\usepackage{blindtext}% dummy text

\begin{document}
\blindtext
\begin{flalign}
&A_{l-side} = 1+2&\\
&B_{both-side} = 3+4+5+6
\end{flalign}
\blindtext
\end{document}


Or

Code:

\documentclass[fleqn]{article}
\usepackage{amsmath}
\setlength\mathindent{0pt}
\usepackage{blindtext}% dummy text
\begin{document}
\blindtext
\begin{alignat}{2}
&A_{l-side}&& = 1+2\\
&B_{both-side} &&= 3+4+5+6
\end{alignat}
\blindtext
\end{document}

• But the equations are not left aligned. Are they? – mahmood Jul 31 '14 at 10:53
• I have added another suggestion. But I am not sure if I unterstand what you want. – esdd Jul 31 '14 at 11:47
• Originally I was looking for the second case. But now I see that third case is the best. Thanks – mahmood Jul 31 '14 at 12:56

(1) do not use equation around it, (2) typo, you have two \begin{flalign}

• post has been updated – mahmood Jul 31 '14 at 9:58
• Removing \begin{euqation} and has o effect also – mahmood Jul 31 '14 at 10:00
• Never use blank lines inside math envs. Not supported. – daleif Jul 31 '14 at 10:39