| 1 |
cleveref, a LaTeX package for intelligent cross-referencing |
| 2 |
Copyright (C) 2007--2018 Toby Cubitt |
| 3 |
|
| 4 |
Files: |
| 5 |
cleveref.ins Batch file, run through LaTeX |
| 6 |
cleveref.dtx Docstrip archive, run through LaTeX |
| 7 |
cleveref.sty LaTeX package, generated by cleveref.ins from cleveref.dtx |
| 8 |
cleveref.dvi Package documentation, generated from cleveref.dtx |
| 9 |
cleveref.pdf Package documentation; can also be generated from cleveref.dtx |
| 10 |
README This file |
| 11 |
|
| 12 |
E-mail: [email protected] |
| 13 |
Address: Department of Computer Science, UCL, United Kingdom |
| 14 |
|
| 15 |
This material is subject to the LaTeX Project Public License. See |
| 16 |
http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the |
| 17 |
details of that license. |
| 18 |
|
| 19 |
|
| 20 |
Description: |
| 21 |
------------ |
| 22 |
The cleveref package enhances LaTeX's cross-referencing features, allowing the |
| 23 |
format of cross-references to be determined automatically according to the |
| 24 |
"type" of cross-reference (equation, section, etc.) and the context in which |
| 25 |
the cross-reference is used. The formatting for each cross-reference type can |
| 26 |
be fully customised in the preamble of your document. In addition, cleveref |
| 27 |
can type-set cross-references to lists of multiple labels, automatically |
| 28 |
formatting them according to their types, sorting them, and compressing |
| 29 |
sequences of numerically consecutive labels. Again, the multiple-reference |
| 30 |
formatting is fully customisable. Though a number of other packages provide |
| 31 |
similar features, all have certain deficiencies which cleveref attempts to |
| 32 |
overcome. |
| 33 |
|
| 34 |
Using cleveref is easy. Basically, wherever you would previously have used |
| 35 |
\ref, you can use \cref instead. (Except at the beginning of a sentence, where |
| 36 |
you should use \Cref.) You no longer need to put the name of the thing you're |
| 37 |
referencing in front of the \cref command, because cleveref will sort that out |
| 38 |
for you: i.e. use "\cref{eq1}" instead of "eq.~(\ref{eq1})". If you want to |
| 39 |
refer to a range of labels, use the \crefrange command: "\crefrange{eq1}{eq5}" |
| 40 |
produces "eqs.~(1) to~(5)". Finally, if you want to refer to multiple things |
| 41 |
at once, you can now combine them all into one cross-reference and leave |
| 42 |
cleveref to sort it out: e.g. "\cref{eq2,eq1,eq3,eq5,thm2,def1}" produces: |
| 43 |
"eqs.~(1) to~(3) and~(5), theorem~5, and definition~1". |
| 44 |
|
| 45 |
Cleveref has various other useful features. For details, see the package |
| 46 |
documentation. |