Time for action – referring cleverly
We shall rewrite our first example using cleveref
. To verify that the package acts cleverly, we consciously omit prefixes in key names to \label
and \cref
.
- Modify our first example in this way:
\documentclass{book} \usepackage{cleveref} \crefname{enumi}{position}{positions} \begin{document} \chapter{Statistics}\label{stats} \section{Most used packages on arXiv.org}\label{packages} The Top Five packages, used on arXiv.org\footnote{according to the arXMLiv project\label{project}}: \begin{enumerate} \item graphicx \item amssymb \label{amssymb} \item amsmath \label{amsmath} \item epsfig \item amsfonts \end{enumerate} \begin{table}[tp] \centering (Identify obsolete packages on CTAN) \caption{Obsolete packages}\label{obsolete} ...
Get LaTeX Beginners Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.