# LaTeX Cross References

One reason for numbering things like figures and equations is to refer the reader to them, as in "See Figure 3 for more details." References are defined using the \label command, and quoted by \pageref or \ref, which are replaced by the page number or the section number on which the definition occurred.

### \label

 \label{key}

A \label command appearing in ordinary text assigns to the key the number of the current sectional unit; one appearing inside a numbered environment assigns that number to the key.

A key can consist of any sequence of letters, digits, or punctuation characters. Upper- and lowercase letters are different.

### \pageref

 \pageref{key}

The \pageref command produces the page number of the place in the text where the corresponding \label command appears.

### \ref

 \ref{key}

The \ref command produces the number of the sectional unit, equation number, ... of the corresponding \label command.