I'm trying to line up multiple equations next to each other and have them all properly labeled. There is another question discussing this exact problem. Unfortunately, all the solutions proposed there produce output with the equations sitting on different baselines, which is extremely jarring.
Here's the document I'm working with:
\documentclass{article}
\usepackage{amsmath, amsfonts}
\begin{document}
\begin{equation}
\mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^n a_ib_i
\qquad
\mathbf{a} \cdot \mathbf{b} =
\lVert \mathbf{a} \rVert
\lVert \mathbf{b} \rVert \cos \theta
\end{equation}
\end{document}
When written this way, it appears that both left-hand sides use the
same baseline and the output looks quite pleasing. Unfortunately I
couldn't achieve the same effect using the suggestions from the linked
question (which are tabularx
, multicol
or minipage
).
Please help!
Update.
I realize that the question is a bit poorly worded. What I really want here, is an ability to arrange equations on a grid, in a way similar to how various align
environments work, but at the same time also labeling equations that end up on the same row. I hope that makes sense.