emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] calling to Emacs server to export to PDF


From: Herbert Sitz
Subject: [Orgmode] calling to Emacs server to export to PDF
Date: Tue, 7 Dec 2010 18:39:51 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I'm trying to call a function in an Emacs server to export a file to PDF using
the following command:

"c:\program files (x86)\emacs\emacs\bin\emacs.exe" -batch --visit=[myfile]
--funcall org-export-as-pdf

It works okay but it doesn't seem to use the default latex class that I've
defined in my .emacs.  I can alter the LaTeX output by embedding #+LATEX_HEAD
lines in my file, but those come after the \documentclass command and all the
other default preamble lines Emacs is inserting.

Printing from the same Emacs instance directly does seem to use the .emacs
configuration for LaTeX-related variables.

So I have a couple of questions.

(1)  Is behavior I'm seeing expected?  That is, when I call org-export-as-pdf
remotely it ignores settings in the .emacs file?

(2)  Is best workaround to just alter the default LaTeX class definitions in
org-latex.el?

Thanks for any help.

-- Herb
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]