MWE
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
&f = \text{here goes a very very very very very long equation} \nonumber
\\
&\hspace*{7.5cm} + \text{which will be split} \label{a}
\\
&xxx = \text{here goes another super long long equation} \nonumber
\\
&\hspace*{5cm} + \text{which continues on the second line} \label{b}
\end{align}
\end{document}
I need to manually align the two equations such that
- The first line of each is flushed left.
- The second line is flushed right and just next to its label (in the example, I use
\hspace*{}
). It does not have to be flushed wrt the above line. - I can still align the two equations (in the example, the
=
are not aligned). - These are still two separate equations, so I can assign labels.
I tried with split
+ equation
and align
+ aligned
, but then I cannot assign multiple labels. I also tried with split
inside align
but then I cannot align the =
.
Many thanks.
\documentclass[fleqn]{article}
.