Changes

Jump to navigation Jump to search
725 bytes added ,  21:03, 23 March 2012
m
added mkiv suggestion
\stoptext
</texcode>
 
== A Simple Solution in Mkiv ==
The vc.tex bundle is certainly nice and powerful, but I found it somewhat difficult to install. If you are using mkiv and just want to typeset some information from your version control system, there is an easier solution: you can typeset the output of system commands via lua code. Here is an example that will print the revision and date of a mercurial system:
 
<texcode>
\ctxlua{context(os.resultof("hg id -i -r tip"))}:
\ctxlua{context(os.resultof("hg log -r tip --template '{date|isodate}'"))}
</texcode>
 
The same would work with any version control system; all you need to do is consult its documentation to figure out the exact syntax to receive the information you want to typeset.
gardener
111

edits

Navigation menu