I'd like to export an org file to LaTeX from the command line. I have created a file export.el
with the following contents (simplified to reproduce the problem):
(require 'org)
(when (not (assoc "scrreprt" org-latex-classes))
(push '("scrreprt"
(assoc "report" org-latex-classes))
org-latex-classes))
(with-current-buffer (find-file-noselect "contents.org")
(org-latex-export-to-latex nil nil nil t)))
And then I tried to run it from the shell:
$ emacs -Q --batch -l export.el
Symbol's value as variable is void: org-latex-classes
It seems that I am missing some org functionality. How do I find out what else I have to require
in order to get org-latex-classes
defined?
(Omitting the -Q
option does not help either, but even if it helped my question about finding the right require
would stand).