Re: [NTG-context] typesetting information from git

2018-02-23 Thread Schmitz Thomas A.
> On 23. Feb 2018, at 22:00, Hans Hagen wrote: > > maybe you mean > > \startluacode > > context.setupdocument { >gitversion = string.strip( >os.resultof("git --no-pager log --pretty='%h of %aD' -1 " .. > environment.jobfilefullname) or "") > } > > \stopluacode >

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
On 2/23/2018 9:38 PM, Schmitz Thomas A. wrote: Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
On 2/23/2018 9:38 PM, Schmitz Thomas A. wrote: Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like

[NTG-context] typesetting information from git

2018-02-23 Thread Schmitz Thomas A.
Hi, I like to add a sort of watermark with info about the git revision at the bottom of some files that I typeset. I’m using Lua, so I have: context(os.resultof("git --no-pager log --pretty='%h of %aD' -1 foo.xml”)) which gives something like "git revision b085c92a of Wed, 14 Feb 2018 12:49:35