Edit
I was wrong, you can do this with normal org mode commands.
C-c C-e
will invoke org-export-dispatch
This brings up the Export Dispatcher
buffer. You'll notice the option for Body Only
at the top, which is toggled with C-b
. Set it to On
, and then complete your export with l l
(or whatever you like).
I'll leave my original, though now unnecessary, pandoc
solution below.
Original answer using pandoc
An inelegant solution using pandoc. From the command line, the following provides the org -> latex conversion without producing any header text:
pandoc -o file_name.tex file_name.org
This assumes your file is called "file_name.org". A bit of elisp to call this function from within Emacs, while you're visiting the file you wish to export:
(defun my-export-to-tex ()
"Export this buffer from org to latex."
(interactive)
(async-shell-command
(concatenate "pandoc -o "
(file-name-base buffer-file-name)
".tex " buffer-file-name)))
org-export-as-latex
is still part of org mode, with the newerorg-export-dispatch
system. However, following your link lead me in a roundabout way to a better solution, which I've posted below.