Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xerdi/gitinfo-lua
Display git project information in your LaTeX projects
https://github.com/xerdi/gitinfo-lua
git latex lua luatex
Last synced: about 2 months ago
JSON representation
Display git project information in your LaTeX projects
- Host: GitHub
- URL: https://github.com/xerdi/gitinfo-lua
- Owner: Xerdi
- License: lppl-1.3c
- Created: 2023-10-31T21:18:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-14T13:29:25.000Z (4 months ago)
- Last Synced: 2024-09-14T23:09:21.395Z (4 months ago)
- Topics: git, latex, lua, luatex
- Language: Lua
- Homepage:
- Size: 172 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# Gitinfo Lua
![CTAN Version](https://img.shields.io/ctan/v/gitinfo-lua)
[![build](https://github.com/Xerdi/gitinfo-lua/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Xerdi/gitinfo-lua/actions/workflows/build.yml)A LaTeX package which provides macros integrated with LuaTeX 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-.tds.tar.gz` from the [releases page](https://github.com/Xerdi/gitinfo-lua/releases) 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](https://github.com/Xerdi/texmf-packaging) available in your `TEXMFHOME`.
The documentation can be built using `make build clean` or manually using `lualatex`:
```bash
# 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](https://github.com/Xerdi/gitinfo-lua/releases) for getting the latest manual.
## License
This project is licensed under the LPPL version 1.3c and maintained by Erik Nijenhuis.
See [LICENSE.txt](LICENSE.txt) for more information.