| 1 |
Git Version (version 1.3) |
| 2 |
========================= |
| 3 |
|
| 4 |
URL: https://github.com/charlesbaynham/gitver |
| 5 |
(c) Charles Baynham 2022 |
| 6 |
|
| 7 |
License: LaTeX Project Public License 1.3c |
| 8 |
|
| 9 |
This package will get a description of the current git version of this |
| 10 |
document and store it in a command `\gitVer`. If memoir or fancyhdr are in use, it |
| 11 |
will also add this to the document footers unless the option "noheader" is |
| 12 |
passed. |
| 13 |
|
| 14 |
It also defines a command `\versionBox{}` which outputs a box containing the |
| 15 |
version and date of compilation |
| 16 |
|
| 17 |
For this to work, you must have git installed and available on the command |
| 18 |
line, this document must be part of a git repository, and latex must be |
| 19 |
running in "shell escape" mode. This can be enabled by passing `--shell-escape` |
| 20 |
on the command line when compiling your docuemnt, or will be available in the |
| 21 |
options of whatever GUI you're using (try Googling). |
| 22 |
|
| 23 |
Note that it's a good idea to tell git to ignore all the latex auxilary files, |
| 24 |
otherwise your version will always be "dirty". Try the `.gitignore` file from |
| 25 |
[gitignore.io](https://www.gitignore.io/api/latex) if you don't already have |
| 26 |
one. |
| 27 |
|
| 28 |
The package is released 'as is' with no warranty under the LaTeX Project Public |
| 29 |
License, version 1.3c. |