This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % A few example commands for a more git-aware LaTeX. | |
| % Note that this requires you to run pdflatex/xelatex/etc. with the | |
| % `--shell-escape' option which is extremely unsafe. Use with care | |
| % and *never* use with plain TeX. | |
| % Print the short-hash of the current commit | |
| \newcommand*{\gitrev}{% | |
| \immediate\write18{% | |
| rm gitrev.tex 2> /dev/null; git rev-parse --short HEAD > gitrev.tex | |
| }% |