I wanted to left align a set of equations. I've tried the solution provided in
aligning to the left.
It worked. But, I wanted to have a single equation number for the entire flalign
in order to refer to it later. Like in case of equation+split
. While using equation+align
, I am able to get it. But, if I use equation+flalign
the equations are still being centered. Is there a way to do it?
Example using equation+align
,
\begin{equation}
\begin{align}
\mbox{Minimize } & x_1+x_2+x_3 \\
\mbox{Subject to} & \\
& x_1+x_2 \leq 10 \\
& x_2+x_3 \leq 8 \\
& x_1+x_3 \leq 5
\end{align}
\end{equation}
I would like to do this while the equations are left aligned. It will be even better if the equations can be spaced a little (for example, 1 cm) from the left margin instead of starting from the left margin.
Thanks in advance
align
intoaligned
.amsmath
package, you may want to use the package's command\text
instead of the basic-LaTeX\mbox
. In the present case, the outcome is the same. However, in more general math settings,\mbox
may give you undesired results because it sets its argument always in\textstyle
, whereas\text
adapts the size of its output to the surrounding math mode (which could be\scriptstyle
or\scriptscriptstyle
).