1

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{equation}
\begin{flalign}
A_{l-side} &= 1+2 \\
B_{both-side} &= 3+4+5+6  \\

\end{flalign}
\end{equation}

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?!

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

Maybe you are looking for something like that

enter image description here

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

enter image description here

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

enter image description here

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

(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 \end{equation} has o effect also – mahmood Jul 31 '14 at 10:00
  • 1
    Never use blank lines inside math envs. Not supported. – daleif Jul 31 '14 at 10:39

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.