Okay, I have been fiddling with this for too long, hence I decided to ask for help. Here's the problem, I am working with a two-column layout and I have some lengthy equations which I would like to display gracefully. This is what I want:
|<some eq> = <first part of a lengthy eq> |
| <very lengthy second part of a lengthy eq>|
|<another eq> = <first part of a lengthy eq> |
| <very lengthy second part of a lengthy eq>|
The vertical bars denote the margins. So, an equation's first part left aligned and the second part right aligned. And while we're at it, I am also curious how to obtain a variant which aligns the '=' symbol:
|<some eq> = <first part of a lengthy eq> |
| <very lengthy second part of a lengthy eq>|
|<another eq> = <first part of a lengthy eq> |
| <very lengthy second part of a lengthy eq>|
I fiddled around with most AMS math environments and also with mathtools' multlined environment. My last attempt was with flalign, but then the second part exceeds the margin as follows
|<some eq> = <first part of a lengthy eq> |
| <very lengthy second part of a lengthy eq>
Help is appreciated, for a hopefully not too hackish solution.
Less important follow-up question: how acquire the above with one vertically-centered equation number, and how to acquire it with equation numbers for both equations?
Update. In response to the request for a minimal working example. Well, at the moment I do not have it working, not in a simple manner nor in a complex manner. But not leave you empty handed, this is what I currently use:
\begin{align*}
&\begin{multlined}
f_1 = -f_2 = a + a + a + a + a +\\
b + b + b + b + b + b + b + b + b + b
\end{multlined}\\
&\begin{multlined}
f_3 = f_4 = c + c + c + c + c +\\
d + d + d + d + d + d + d + d + d + d
\end{multlined}
\end{align*}
The problem here is that the equations are centered. I want the first part of the multlined at the left margin and the second part of the multlined at the right margin.
\documentclass{...}
and ending with\end{document}
.