File: README.md

package info (click to toggle)
texlive-extra 2022.20230122-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,466,588 kB
  • sloc: perl: 398,710; xml: 35,871; python: 29,125; cs: 25,850; sh: 17,610; makefile: 17,304; ansic: 15,490; java: 12,811; javascript: 9,898; lisp: 1,755; csh: 1,129; ruby: 1,072; awk: 151; tcl: 142; pascal: 138; cpp: 41; sed: 36; haskell: 5
file content (29 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Git Version (version 1.3)
=========================

URL: https://github.com/charlesbaynham/gitver
(c) Charles Baynham 2022

License: LaTeX Project Public License 1.3c

This package will get a description of the current git version of this
document and store it in a command `\gitVer`. If memoir or fancyhdr are in use, it
will also add this to the document footers unless the option "noheader" is
passed.

It also defines a command `\versionBox{}` which outputs a box containing the
version and date of compilation

For this to work, you must have git installed and available on the command
line, this document must be part of a git repository, and latex must be
running in "shell escape" mode. This can be enabled by passing `--shell-escape`
on the command line when compiling your docuemnt, or will be available in the
options of whatever GUI you're using (try Googling).

Note that it's a good idea to tell git to ignore all the latex auxilary files,
otherwise your version will always be "dirty". Try the `.gitignore` file from
[gitignore.io](https://www.gitignore.io/api/latex) if you don't already have
one.

The package is released 'as is' with no warranty under the LaTeX Project Public
License, version 1.3c.