# Label two equations in one line with two correct reference?

I have searched the website about this but have found nothing similar. suppose that I have two equations a=b (1) and b=c (2). I would like to be able to put both of them in one line with two different references as: a = b, b = c (1, 2)

I'm prety sure, that your question is duplicate, but I can't found (my) answer on similar question ... So, meanwhile see, if this is what you looking for:

\documentclass{article}
\usepackage{mathtools}
\usepackage{tabularx}

\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{3mm}

\begin{document}
\begin{preview}
\begin{tabularx}{\textwidth}{XX}
$$\label{eq:1} a=b$$
&
$$\label{eq:2} c=d$$
\end{tabularx}\par
Considering \eqref{eq:1}, \eqref{eq:2} and (\ref{eq:1},\ref{eq:2}) \dots
\end{preview}
\end{document}


Use of preview is only to shof this equation fragment. In real use, remove all it appearance.

• I have already seen this question but if you see my question I have mentioned two labels in one parenthesis as (1, 2). Jul 20, 2016 at 8:27
• Than please correct title of your question and also make question clear. It seems that haven't problem with two equation in line but with referencing range of equations ... see edit of mine answer. Jul 20, 2016 at 10:52
• looks good to me
– JPi
Jul 20, 2016 at 12:10
• what if I have to write and between the two equations? Apr 7, 2021 at 20:14
• @ManjoyDas, if you have new question, please ask it as such. I guess that you like to insert third column where you like to write and. Apr 7, 2021 at 20:59