emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* calling to Emacs server to export to PDF
@ 2010-12-07 18:39 Herbert Sitz
  2010-12-07 19:26 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Sitz @ 2010-12-07 18:39 UTC (permalink / raw)
  To: emacs-orgmode

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
  

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-07 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 18:39 calling to Emacs server to export to PDF Herbert Sitz
2010-12-07 19:26 ` Nick Dokos
2010-12-07 19:35   ` Herbert Sitz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).