What I want to do is the following:
I want to refer to an earlier block of text. I could do this by using the \label and the \ref commands like so:
\label{x} Lorem ipsum dolor sit amet, consectetur adipiscing elit.
See page \ref{x}.
This would create something like "See page 1" out of the second line of code.
However, let's say the sentence above, in the first line of code, spans over more than one page. Then I would like the readout to be "See pages 1-2". Now I could solve this by doing the following:
\label{x} Lorem ipsum dolor sit amet, consectetur adipiscing elit. \label{y}
See pages \ref{x}-\ref{y}.
This would create something like "See pages 1-2" out of the second line of code.
However, this is not flexible enough. If the sentence doesn't span over several pages, I would end up with something like "See pages 1-1", something I definitely wouldn't want.
So, I guess you can see my dilemma here. Is there any way for me to do what I want?

variorefpackage is used together with thehyperrefpackage. To quote thehyperrefReadMe: “Perhaps you are lucky and some of the features of varioref work […]” – mhp Sep 01 '11 at 08:17