Skip to content

Instantly share code, notes, and snippets.

View charlietanksley's full-sized avatar

Charlie Tanksley charlietanksley

View GitHub Profile
@charlietanksley
charlietanksley / git-log.tex
Created November 17, 2010 16:02
show git log content in tex file with lualatex
\directlua{
function gitlog()
local com = io.popen('git log -1 --oneline --decorate')
local out = com:read('*a')
tex.print(out)
end
gitlog()
}
@charlietanksley
charlietanksley / lualatex_experiment.tex
Created November 17, 2010 01:27
lualatex and os.exec commands
\documentclass{article}
\begin{document}
This is my document.
% Works:
\directlua{ tex.print("Printed by lua.") }
% Works:
=> brew install mutt
==> Downloading http://1978th.net/tokyocabinet/tokyocabinet-1.4.45.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/tokyo-cabinet/1.4.45
==> make
==> make install
ln: ./tcutest.1: Permission denied
Error: The linking step did not complete successfully
The package built, but is not symlinked into /usr/local
You can try again using `brew link tokyo-cabinet'