[Tex/LaTex] Pageref using cref? Multiple pages

cleverefcross-referencing

I am using \cref to refer to different figures in the appendix:

\cref{figure1,figure2,...}

Now I want to create a \pageref{} to it, but I don't know how I can achieve this with multiple pages? So that the first and the last page is given?

Best Answer

Let say you have three figures respectively on pages 1, 2 and 3. The use of the command

\cpageref{figure1,figure2,figure3}

will yield

pages 1, 2 and 3

However the use of the command

\cpagerefrange{figure1}{figure3}

will yield

pages 1 to 3

NOTE: These two commands are part of the cleveref package.