From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: calling to Emacs server to export to PDF Date: Tue, 7 Dec 2010 18:39:51 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36095 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQ2SN-0004lm-8C for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:40:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQ2SL-0005kl-Nz for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:40:07 -0500 Received: from lo.gmane.org ([80.91.229.12]:51531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQ2SL-0005kR-FT for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 13:40:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PQ2SJ-0005QC-O9 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 19:40:04 +0100 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Dec 2010 19:40:03 +0100 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Dec 2010 19:40:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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