CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/gitinfo-lua

README.md

Gitinfo Lua

CTAN Version

build

A package which provides macros integrated with Lua and the commandline tool git.

Installation

The recommended way of installing is using tlmgr install gitinfo-lua. If you can't update/install packages with tlmgr, you can download the latest gitinfo-lua-<version>.tds.tar.gz from the releases page and then unpack it in your TEXMFHOME. To find out where your TEXMFHOME is, you can consult kpsewhich --var-value TEXMFHOME on the commandline.

Documentation

A prerequisite is that you have the texmf-packaging available in your TEXMFHOME. The documentation can be built using make build clean or manually using lualatex:

# Using the original TEXMFHOME and the project directory
CNF_LINE="TEXMFHOME={$(pwd),$(kpsewhich --var-value TEXMFHOME)}"
cd doc
lualatex --lua=gitinfo-lua-init.lua --cnf-line $CNF_LINE gitinfo-lua
makeindex -s gind.ist gitinfo-lua.idx
lualatex --lua=gitinfo-lua-init.lua --cnf-line $CNF_LINE gitinfo-lua

To do the same as the Lua initialization script, commandline option --shell-restricted should be passed and git should be added to shell_escape_commands in your texmf.cnf. The texmf.cnf file to edit can be found with kpsewhich texmf.cnf.

See the releases section for getting the latest manual.

License

This project is licensed under the LPPL version 1.3c and maintained by Erik Nijenhuis. See LICENSE.txt for more information.

Download the contents of this package in one zip archive (135.2k).

gitinfo-lua – Display git project information in your projects

This project aims to display git project information in PDF documents. It is mostly written in Lua for executing the git commands, thereby making this package only applicable for Lua with shell escape enabled.

If Lua isn’t working for you, you could try gitinfo2 instead.

For , a set of standard macros is provided for displaying basic information or setting the project directory, and a set of advanced macros for formatting commits and tags.

Packagegitinfo-lua
Bug trackerhttps://github.com/Xerdi/gitinfo-lua/issues
Repositoryhttps://github.com/Xerdi/gitinfo-lua
Version1.2.0
LicensesThe Project Public License 1.3c
Copyright2023–2024 E. Nijenhuis
MaintainerErik Nijenhuis
Contained inTeX Live as gitinfo-lua
MiKTeX as gitinfo-lua
TopicsVersion control
Document Management
Lua
...
Guest Book Sitemap Contact Contact Author