| 1 | ## The *cleveref-usedon* package |
| 2 | Patches the cleveref package and adds forward-referencing functionality |
| 3 | |
| 4 | ## Description |
| 5 | Imagine you are reading a long mathematical text such as a text book |
| 6 | or a thesis. There are plenty of supplementary lemmas, propositions, |
| 7 | theorems and/or exercises throughout the whole text. |
| 8 | |
| 9 | You ask yourself *"Gosh, while Lemma 1.12 is certainly an interesting |
| 10 | result **where** is this result used later on in this long text? I |
| 11 | really would find that helpful to decide **why** I should read the |
| 12 | proof."* |
| 13 | |
| 14 | You can, of course, use the PDF search function of your viewer to |
| 15 | look up the string *"Lemma 1.12"* but wouldn't it be more helpful |
| 16 | if Lemma 1.12 already indicates all or at least its most |
| 17 | useful/crucial applications via an info message? |
| 18 | |
| 19 | This is what the package **cleveref-usedon** tries to address. |
| 20 | The info message *"Used on p. 40, 43-45 and 101."* would then be |
| 21 | printed to the header of Lemma 1.12. |
| 22 | |
| 23 | Check the [package documentation](./cleveref-usedon.pdf) for more info on the usage or look at an [example](https://github.com/SvenPistre/cleveref-usedon/tree/main/examples) directly. |
| 24 | |
| 25 | ## Installation |
| 26 | Place the file ``cleveref-usedon.sty`` at a location which your LaTeX distribution understands. For instance, on OS X you can place it in ``~/Library/texmf/tex/latex``. |
| 27 | If you don't know where that would be on your OS, you can also simply drop this file in the same directory as the ``.tex`` file where you want to use the package. |
| 28 | |
| 29 | If you wish you can also 'compile' the package style file ``cleveref-usedon.sty`` and the documentation ``cleveref-usedon.pdf`` 'from source' as follows: |
| 30 | - To generate the package style file, run the installation file ``cleveref-usedon.ins`` through pdflatex. |
| 31 | - To generate the documentation, run the DocStrip file ``cleveref-usedon.dtx`` through pdflatex. |
| 32 | |
| 33 | --- |
| 34 | Copyright (C) 2023 Sven Pistre |
| 35 | |
| 36 | E-mail: [[email protected]](mailto:[email protected]?subject=[cleveref-usedon]) |
| 37 | ``` |
| 38 | Files: |
| 39 | cleveref.ins Batch file, run through LaTeX |
| 40 | cleveref.dtx Docstrip archive, run through LaTeX |
| 41 | cleveref.sty LaTeX package, generated by cleveref.ins from cleveref.dtx |
| 42 | cleveref.pdf Package documentation, generated from cleveref.dtx |
| 43 | README This file |
| 44 | |
| 45 | This file may be distributed and/or modified under the |
| 46 | conditions of the LaTeX Project Public License, either |
| 47 | version 1.3 of this license or (at your option) any later |
| 48 | version. The latest version of this license is in: |
| 49 | |
| 50 | http://www.latex-project.org/lppl.txt |
| 51 | |
| 52 | and version 1.3 or later is part of all distributions of |
| 53 | LaTeX version 2005/12/01 or later. |
| 54 | ``` |
| 55 | --- |