4

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?

0 _
  • 958
user35428
  • 41
  • 1
  • 2

1 Answers1

9

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.

Ludovic C.
  • 8,888
  • Thanks! But why does \pageref{} give me just the number and not the word "page"? – user35428 Aug 20 '13 at 16:15
  • 1
    Because \pageref{} is not coming from the cleveref package. It is the same thing with the \ref{} which gives only some numbers while \cref{} adds some prefix. – Ludovic C. Aug 20 '13 at 16:20
  • Actually, cleveref also automatically compresses page references by default. So \cpageref{figure1,figure2,figure3} in your example will yield "pages 1 to~3". – Toby Cubitt Nov 21 '13 at 16:50