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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to