[Tex/LaTex] Equations side-by-side, both numbers on the right

equationshorizontal alignmentnumbering

How can I typeset two equations side-by-side but get both equation numbers printed on the right?

          a = b            c = d      (1, 2)

I need to reference both equations individually in the text.

I am aware of the questions asked by SuperElectric and HTG, but they are not looking for both numbers to appear on the right-hand side of the page.

Best Answer

Save the meaning of \label (after loading hyperref, if you do) and use equation* together with \tag:

\documentclass{article}

\usepackage{amsmath}
\usepackage[colorlinks]{hyperref} % optional

\AtBeginDocument{\let\latexlabel\label}

\begin{document}
\begin{equation*}
\refstepcounter{equation}\latexlabel{firsthalf}
\refstepcounter{equation}\latexlabel{secondhalf}
a=b\qquad c=d
\tag{\ref*{firsthalf}, \ref*{secondhalf}}
\end{equation*}

Another
\begin{equation}
e=f
\end{equation}

\ref{firsthalf} and \ref{secondhalf}
\end{document}

If you don't use hyperref, then use simply \ref and not \ref* (which is meant to avoid creating a spurious link).

enter image description here