* Export org-files using a Makefile

#+BEGIN_SRC makefile :tangle Makefile
pdf:
        rm -f make-org.pdf
        emacs -batch make-org.org -f org-latex-export-to-pdf
        open make-org.pdf
#+END_SRC


works for me.

Robert Love writes:

> Does anyone have a make file example that has emacs load an .org file, 
> process it into LaTeX and export as PDF, all from the
> command line without the user doing anything more than type ‘make’? All 
> examples appreciated.
>
> —
> Bob Love
> "Insisting on perfect safety is for people who don't have the balls to live 
> in the real world." -- Mary Shafer, NASA Dryden


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

Reply via email to