Exporting to .pdf via latexmk in Org Mode 8.0

I am a big fan of Org-Mode. I like its pared-down syntax and general power. One problem that I was having, though, was getting my citations to show up in my exported PDFs–the export mechanism just wasn’t processing them. There is a pretty easy solution to this, though–you can use latexmk as the export process. This thread on StackExchange gives suggestions on how to do that with some earlier version(s) of Org-Mode, but it wasn’t working in my more recent version.

So here’s the line that you need to put in your .emacs or Preferences.el (for Aquamacs) if you’re using Org-Mode 8:

(setq org-latex-pdf-process (list "latexmk -f -pdf %f"))

Only two small changes here: I had to switch org-latex-to-pdf-process to org-latex-pdf-process (which is noted here as a change) and %s to %f (which is noted in the StackExchange comments). This should give you the standard power of latexmk in exporting your .org files to .pdf.

Clark R. Donley
PhD Candidate in Philosophy