#!/bin/sh

emacs  \
-l /home/r/config/emacs/clojure-init.el \
-l /home/r/config/emacs/org-init.el \
-l /home/r/config/emacs/thesis-color.el \
--batch \
--eval "
(progn
  (find-file \"/home/r/proj/cortex/thesis/cortex.org\")
  (org-latex-export-to-latex nil nil nil t nil))" \
\
2>&1 

rm cortex.tex~