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
On Mon, 26 Nov 2012, Thomas A. Schmitz wrote:
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?
\contextversion Aditya
participants (2)
-
Aditya Mahajan
-
Thomas A. Schmitz