rbarazzutti / gitinfo2-latexmk

Use LaTeX's gitinfo2 with almost no effort
LaTeX Project Public License v1.3c
9 stars 3 forks source link

Introduction

I started using gitinfo a while ago, from version 1.x to version 2.x. I used the Git hooks mechanisms that were suggested in the documentation. Hence this method works well in many situations; it is, IMHO, tedious and not straightforward to maintain.

Since I'm a user of latexmk, I decided to build a small tool that integrates smoothly with it and gitinfo2.

Setup

Tailoring release tags

By default, this module will look for release tags that match the following that starts with a digit (that fit the following regex "[0-9]*.*").

You can use a custom release tags matcher, i.e. in case where version number are prefixed with the letter "v", the hook code should be adapted by setting it through the a variable named GIT2TM_OPTIONS:

%GI2TM_OPTIONS=(RELEASE_MATCHER=>"v[0-9]*.*");
do './gitinfo2.pm';

Known-bugs

PDF documentation

Simply download the PDF manual of gitinfo2-latexmk . This PDF document contains more-or-less the content of this README.

Change log

License

gitinfo2-latexmk may be distributed and/or modified under the conditions of the LaTeX Project Public License: either version 1.3 of this license, or (at your option) any later version.