diff options
-rw-r--r-- | Master/texmf-dist/doc/lualatex/gitinfo-lua/README.md | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.pdf | bin | 116103 -> 115167 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.tex | 11 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/gitinfo-lua/gitinfo-lua.lua | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/gitinfo-lua/gitinfo-lua.sty | 2 |
5 files changed, 24 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/lualatex/gitinfo-lua/README.md b/Master/texmf-dist/doc/lualatex/gitinfo-lua/README.md index 383cf2df33a..1abafbdc062 100644 --- a/Master/texmf-dist/doc/lualatex/gitinfo-lua/README.md +++ b/Master/texmf-dist/doc/lualatex/gitinfo-lua/README.md @@ -1,4 +1,5 @@ -# Git LaTeX +# Gitinfo Lua +![CTAN Version](https://img.shields.io/ctan/v/gitinfo-lua) A LaTeX package which provides macros integrated with LuaTeX and the commandline tool `git`. @@ -17,8 +18,8 @@ makeindex -s gind.ist gitinfo-lua.idx lualatex -shell-escape gitinfo-lua.tex ``` -Read [gitinfo-lua.pdf](gitinfo-lua.pdf) for more information about this package. +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.pdf](LICENSE.pdf) for more information. +See [LICENSE.txt](LICENSE.txt) for more information. diff --git a/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.pdf b/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.pdf Binary files differindex ad1db4e0b14..da85914b1b3 100644 --- a/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.pdf +++ b/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.pdf diff --git a/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.tex b/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.tex index 1587f72d80b..438f235b005 100644 --- a/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.tex +++ b/Master/texmf-dist/doc/lualatex/gitinfo-lua/gitinfo-lua.tex @@ -17,10 +17,15 @@ % gitinfo-cmd.lua and gitinfo-lua.lua \documentclass{ltxdoc} \usepackage[english]{babel} -\usepackage[titlepage]{gitinfo-lua} +\usepackage[titlepage,authors]{../tex/gitinfo-lua} \usepackage{listings} - +\lstset{ + basicstyle=\ttfamily, + columns=fullflexible, + breaklines=true, + breakatwhitespace=false +} \usepackage{calc} \usepackage{multicol} \usepackage{tabularx} @@ -285,7 +290,7 @@ latexmk -pvc -lualatex -shell-escape main The \meta{csname} takes exactly three arguments, namely, the \meta{current}, \meta{next tag} and \meta{rev spec}. The last iteration gives an empty value for \meta{next tag} and the \meta{rev spec} is identical to \meta{current}. - Afterward tag info get be fetched using the \DescribeMacro{\gittag} \cmd{\gittag}\oarg{format}\marg{csname}\marg{tag}. + Afterward tag info can be fetched using the \DescribeMacro{\gittag} \cmd{\gittag}\oarg{format}\marg{csname}\marg{tag}. This macro takes the same formatting specification as \cmd{\fotgittag}. Beware of using \cmd{\gittag} for the \meta{next tag} parameter in \cmd{\forgittagseq}. diff --git a/Master/texmf-dist/scripts/gitinfo-lua/gitinfo-lua.lua b/Master/texmf-dist/scripts/gitinfo-lua/gitinfo-lua.lua index 4cb0f0f467b..a1c2a6988b1 100644 --- a/Master/texmf-dist/scripts/gitinfo-lua/gitinfo-lua.lua +++ b/Master/texmf-dist/scripts/gitinfo-lua/gitinfo-lua.lua @@ -23,9 +23,10 @@ end local module = { name = 'gitinfo-lua', info = { - version = 1.0, + version = '1.0.1', --TAGVERSION + date = '2024/02/12', --TAGDATE comment = "Git info Lua — Git integration with LaTeX", - author = "Erik Nijenhuis", + author = "Erik Nijenhuis", license = "free" } } @@ -43,8 +44,8 @@ local api = { ['_'] = '\\_', ['{'] = '\\{', ['}'] = '\\}', - ['~'] = '\\textasciitilde', - ['%^'] = '\\textasciicircum' + ['~'] = '\\textasciitilde ', + ['%^'] = '\\textasciicircum ' } } local mt = { @@ -55,11 +56,11 @@ local gitinfo = {} setmetatable(gitinfo, mt) function api.trim(s) - return (s:gsub("^%s*(.-)%s*$", "%1")) + return s and (s:gsub("^%s*(.-)%s*$", "%1")) or 'nil' end function api:set_date() - local date, err = self.cmd:log('cs', '-1', {'max-count=1'}) + local date, err = self.cmd:log('cs', '-1', { 'max-count=1' }) if date and #date == 1 then local _, _, year, month, day = date[1][1]:find('(%d+)[-/](%d+)[-/](%d+)') tex.year = tonumber(year) @@ -71,7 +72,7 @@ function api:set_date() end function api:escape_str(value) - local buf = string.gsub(value, '\\', '\\textbackslash') + local buf = string.gsub(value, '\\', '\\textbackslash ') for search, replace in pairs(self.escape_chars) do buf = string.gsub(buf, search, replace) end @@ -223,7 +224,7 @@ end function api:cs_commit(csname, rev, format) if token.is_defined(csname) then local tok = token.create(csname) - local log, err = self.cmd:log(format, rev, {'max-count=1'}) + local log, err = self.cmd:log(format, rev, { 'max-count=1' }) if log then if #log == 1 then tex.print(tok) @@ -266,7 +267,7 @@ end function api:tag_info(format_spec, tag, target_dir) local err, info - info, err = self.cmd:for_each_ref(format_spec, 'refs/tags', {'count=1', 'contains=' .. tag}, target_dir) + info, err = self.cmd:for_each_ref(format_spec, 'refs/tags', { 'count=1', 'contains=' .. tag }, target_dir) if info and #info == 1 then return info[1] else @@ -305,7 +306,7 @@ end function api:cs_for_tag(csname, format_spec, target_dir) if token.is_defined(csname) then local tok = token.create(csname) - local tags, err = self.cmd:for_each_ref(format_spec, 'refs/tags', {'sort=-authordate'}, target_dir) + local tags, err = self.cmd:for_each_ref(format_spec, 'refs/tags', { 'sort=-authordate' }, target_dir) if tags then for _, info in ipairs(tags) do tex.print(tok) diff --git a/Master/texmf-dist/tex/lualatex/gitinfo-lua/gitinfo-lua.sty b/Master/texmf-dist/tex/lualatex/gitinfo-lua/gitinfo-lua.sty index 405c668901f..33fe5066c90 100644 --- a/Master/texmf-dist/tex/lualatex/gitinfo-lua/gitinfo-lua.sty +++ b/Master/texmf-dist/tex/lualatex/gitinfo-lua/gitinfo-lua.sty @@ -16,7 +16,7 @@ % This work consists of the files gitinfo-lua.sty gitinfo-lua.pdf % gitinfo-cmd.lua and gitinfo-lua.lua \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{gitinfo-lua}[2023/11/10 Xerdi's Git Package] +\ProvidesPackage{gitinfo-lua}[2024/02/12 1.0.1 Xerdi's Git Package] \RequirePackage{luacode} |