\documentclass{article} \usepackage[a5paper,margin=1.5in]{geometry} \usepackage{amsmath} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \usepackage{cleveref} \begin{document} \section{A section}\label{sec:this} A reference to an equation in this section looks like : ``see \cref{eq:a} in \cref{sec:this}''. \begin{align} a &= b \label{eq:a}\\ b &< c \label{eq:b}\\ c &< d \label{eq:c} \end{align} \Cref{eq:c,eq:a,eq:b} above are \ldots \end{document}
\documentclass{article} \usepackage[a5paper,margin=1.4in]{geometry} \usepackage{amsmath} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \usepackage{cleveref} \begin{document} \section{A section} \begin{align} a &= b \label{eq:a}\\ b &< c \label{eq:b}\\ c &< d \label{eq:c}\\ a &< c \label{eq:d}\\ b &< d \label{eq:e} \end{align} \Cref{eq:c,eq:b,eq:a,eq:d,eq:e} are sorted and \cref{eq:c,eq:b,eq:a,eq:e} are sorted with a gap. But compare these results with referencing \cref{eq:c,,eq:b,eq:a,eq:d,eq:e}! Surprised? \end{document}
\documentclass{article} \usepackage[a5paper,margin=1.4in]{geometry} \usepackage{amsmath} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \usepackage{cleveref} \begin{document} \section{A section}\label{sec:one} \begin{align} a &= b \label{eq:a}\\ b &< c \label{eq:b}
\\ c &< d \label{eq:c}\\ a &< c \label{eq:d}\\ b &< d \label{eq:e} \end{align} \Cref{eq:c,,eq:b,eq:a,eq:d,eq:e,sec:one,sec:two} \section{A section too}\label{sec:two} \end{document}
\documentclass{article} \usepackage[a5paper,margin=1.4in]{geometry} \usepackage{amsmath} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \usepackage[sort,capitalize]{cleveref}%加两个包选项 \begin{document} \section{A section}\label{sec:one} \begin{align} a &= b \label{eq:a}\\ b &< c \label{eq:b}\\ c &< d \label{eq:c}\\ a &< c \label{eq:d}\\ b &< d \label{eq:e} \end{align} \cref{eq:c,,eq:b,eq:a,eq:d,eq:e,sec:one,sec:two} \section{A section too}\label{sec:two} \end{document}