26 Nov
2012
26 Nov
'12
6:35 p.m.
Hi all, this is a very easy one, but I couldn't find information: for a document under version control, I would like to typeset the git revision and the context version used in a footer. For git, I have come up with \starttext git revision \ctxlua{context(os.resultof("git --no-pager log --pretty='\%h of \%aD' -1"))} \stoptext But what is the easiest way to typeset the context version? There must be something easier than \ctxlua{context(os.resultof("context --version | grep current"))}, right? All best Thomas