I have two really long equations that don't fit into one line. I would like to display them as
first_eq LHS, super super super super long =
first_eq RHS, aligned right, also not short
second_eq LHS, not as long as first eq =
second_eq RHS, aligned right, pretty loooooooooooooooooooooooooong too
Note that all lines are aligned to a side, either left or right.
How can I achieve this within latex? I'm somewhat familiar with align
, so if I wouldn't have to learn new packages that'd be great, but not a deal breaker.
I'm not sure whether the two equation signs should be vertically aligned, that could potentially look neat.
Neither of the solutions in the closed-as question work here. For example,
\begin{multline}
(\rho + \delta + (1-\beta)f(m(a, \bar u, l))J(a, \bar u, l) = \\
\left((1 - \beta)(p(a, \bar u, l) - b) + dJ(a, \bar u, l)\mathbf z(a, \bar u, l)\right)\\
\rho U (a, \bar u, l) = \\
b + f(m(a, \bar u, l))\frac{\beta}{1-\beta}J(m(a, \bar u, l)) + \eta \underbar U + dU(a, \bar u, l)\mathbf z(a, \bar u, l) \\
\perp \underbar U \leq U(a, \bar u, l) \leq \bar U(a, \bar u, l)
\end{multline}
does not align them as I want to but equations rather hover weirdly in the center. Wrapping it around in dmath
has no impact whatsoever.
multline
, notmultiline
– Bernard Jan 25 '18 at 10:35multline
from theamsmath
package, see for example here: How can I split an equation over two (or more) lines – Tiuri Jan 25 '18 at 10:40multline
s after each other are not an option for you, you can manually force left- and right-alignment insidemultline
with the\shoveleft
and\shoveright
macros. I voted for reopen to add that as a solution. – Tiuri Jan 25 '18 at 15:49