How to have multiple numberings/labels for multiple lines in equation?

Hi, I want to put a long equation with multiple terms to multiple lines with multiple labels, and refer them later to explain. The terms are aligned according to the signs before them. In Latex I can put terms inside align environment and use & to align terms. But how can I achive this in typst?

Here is the example:

In Typst you can also use the & in an equation to achieve the alignment. See the docs for an example.

For the multiple labels you should check out the package equate. It adds a show rule to add labels to each line in an equation (and a few more things). The example also shows how to reference a specific label inside your equation.

Thanks for your suggestion. But equate package requires (1.1) numbering, and I prefer the numbering can be (1), as shown in the example.

Did you set sub-numbering to false?

#show: equate.with(sub-numbering: false)
#set math.equation(numbering: "(1)")

Okay so I was misled by the example in the document.

However these days I found more frustrating things with equate package, and I decide temporarily not to use it.

Hi @rnicrosoft, welcome and thanks for the question! I’m not sure if the answer about using sub-numbering solved your issue and you are facing a new one, or if your original issue was not completely addressed.

If it is the former, could you give flokl’s answer a check mark :ballot_box_with_check: ? That will make it easier for others to find the solution. Also feel free ask a new question about what it is you’re struggling with.

If your original issue is not solved, could you explain in what way? Then we can try to help you further.