# Get \ref for equations working like \cite for contiguous references

When referencing a list of equations like see Eq.12, 13, 14 and 15 the \cite command behaviour, which allows a single list of references, should be preferred I think. Is there something equivalent for the \ref command that would allow \ref{eq1,eq2,eq3}?

-

The \cref macro of the cleveref package is your friend.

\documentclass{article}

\usepackage{cleveref}

\begin{document}

$$\label{eq:a} a^2 + b^2 = c^2$$

$$\label{eq:b} d^2 + e^2 = f^2$$

$$\label{eq:c} g^2 + h^2 = i^2$$

See \cref{eq:a,eq:b,eq:c}.

\end{document}


-