Producing intelligent page references

The varioref package offers a command being able to add "on the preceding page", "on the following page", or on the page number to a reference, depending on the context.

Get LaTeX Beginners Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.