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?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI 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?
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.
\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
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
\cpageref
do the job? – jub0bs Aug 20 '13 at 15:37\cpagerefrange
which you need to use – Ludovic C. Aug 20 '13 at 15:47