[Tex/LaTex] Using the flush left align environment flalign

alignequationshorizontal alignment

When using the flalign, I either get LHS and the = on te far left and the RHS on the far right.

enter image description here

\begin{flalign}
x & = & 1
\end{flalign}

Or I the equation centers itself when I try

enter image description here

\begin{flalign}
x & = 1
\end{flalign}

How can I get everything on the LHS?

Best Answer

Add an alignment character at the end:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{flalign}
f(x) &= ax^2 + bx + c
\end{flalign}
\begin{flalign}
f(x) &= ax^2 + bx + c &
\end{flalign}
\end{document}

Note that in a regular alignment, you only use a single & around the relation you wish to align with.

To have all equations flush left, add the fleqn option to your document class (or the packages that use it, like amsmath):

\documentclass[fleqn]{article}
Related Question