I have a sum expression with many terms. I would like to split the summands into two groups in order to be able to talk about the differences between group 1 terms and group 2 terms in general. I would also like to assign numbers to individual terms in order to be able to refer to them later. Thus I want to render the equation like this:
(1.1) f_1(...) }
} group 1
(1.2) + f_2(...) }
(1.3) + g_1(...) }
} group 2
(1.4) + g_2(...) }
(of course, there should be two large curly braces instead of many small ones)
How can one achieve this? I can get line numbers with align and I can get the braces with nested splits, but how does one get both?

leqno), right? – campa Jul 28 '22 at 09:20empheqenvironments then terms from different groups are no longer aligned with each other. – Andrei Matveiakin Jul 28 '22 at 10:34