[Tex/LaTex] Cross-reference to equation with cleveref

cleverefcross-referencing

How can I get cleveref to produce the following:

Inserting Equation (1) into (2) yields …

i.e., I don't want the word "Equation" to pop up before (2), which i have when simply using

Inserting \Cref{eq:1} into \Cref{eq:2} yields ...

Best Answer

Use \labelcref for the second cross-reference. Or, assuming the amsmath package is loaded as well, just write \eqref to generate the second cross-reference.

A full MWE:

\documentclass{article}
\usepackage{amsmath}
\usepackage{cleveref}
\begin{document}
\begin{equation}\label{eq:1} a \end{equation} % generate two dummy equations
\begin{equation}\label{eq:2} b \end{equation}

Inserting \cref{eq:1} into \labelcref{eq:2} yields \dots

Inserting \cref{eq:1} into \eqref{eq:2} yields \dots
\end{document}
Related Question