Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}?

share|improve this question
add comment

1 Answer 1

up vote 8 down vote accepted

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

\documentclass{article}

\usepackage{cleveref}

\begin{document}

\begin{equation}
\label{eq:a}
a^2 + b^2 = c^2
\end{equation}

\begin{equation}
\label{eq:b}
d^2 + e^2 = f^2
\end{equation}

\begin{equation}
\label{eq:c}
g^2 + h^2 = i^2
\end{equation}

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

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.