I rarely do the following (it's the first time, actually!). To save space on a page, I have to align two labeled equations on the same line. Then I need to make a reference to these equations in the text. The MWE below reproduce the issue :
I need the equation numbers to be properly shown as (1a) and (1b), not as (1)a and (2)b like what is done by hand in this code. What should be the proper way of doing this?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
There's support for side by side and alignment in general, just mixing in sub-numbering in aligned environments is not so common and less supported by default. For example, there cannot be several labels for references in the same align environment line.
But it's easy doing it with \parbox or \minipage and in the same way above. Or here, I simply use tabularx, the X columns share the available space symmetrically, in the middle I just have a column for separation space. It's not so unusual: for arranging stuff in columns, a table is a natural choice.
The amsmath package provides a handful of options for displaying equations. You can choose the layout that better suits your document, even if the equations are really long, or if you have to include several equations in the same line.
Contents
1 Introduction
2 Including the amsmath package
3 Writing a single equation
4 Displaying long equations
5 Splitting and aligning an equation
6 Aligning several equations
7 Grouping and centering equations
8 Further reading
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p