O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – introducing variable references

We will use the varioref commands, \vref and \vpageref , to achieve enhanced reference texts:

  1. Open our current example. Add the package varioref to your preamble:
    \usepackage{varioref}
  2. Edit the content of the second chapter:
    \emph{amsmath}, on position \ref{item:amsmath} of the top list
    in section~\vref{sec:packages}, is indispensable to high-quality
    mathematical typesetting in \LaTeX. \emph{amssymb}, on position
    \ref{item:amssymb}, provides a huge amount of math symbols.
    See also the footnote \vpageref{fn:project}.
  3. Typeset twice and look at the result:
    Time for action – introducing variable references

What just happened?

The command \vref checked the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required