From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Nick Dokos: Re: Problem exporting to LaTeX/PDF from command line Date: Tue, 20 Apr 2010 12:14:14 -0400 Message-ID: <13212.1271780054@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4G61-0000Mg-SH for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 12:14:45 -0400 Received: from [140.186.70.92] (port=42929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4G5x-0000Ky-FR for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 12:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4G5s-0000Pp-QJ for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 12:14:41 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:47189) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4G5s-0000Pf-Jy for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 12:14:36 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L1600BUANXFYCY0@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 11:17:39 -0500 (CDT) 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: Francesco Pizzolante Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Talking to myself again... ------- Forwarded Message Date: Tue, 20 Apr 2010 11:46:41 -0400 From: Nick Dokos To: nicholas.dokos@hp.com Subject: Re: [Orgmode] Problem exporting to LaTeX/PDF from command line Nick Dokos wrote: > Nick Dokos wrote: > > > Francesco Pizzolante wrote: > > > > > Hi, > > > > > > I forgot to mention that, of course, when I do the same operation within > > > Emacs, using the C-c C-e l, the file is exported without problem. > > > > > > Any idea? > > > > > > > I tried a little debugging on this, but I didn't get very far before I > > ran out of time. The re-search-forward for "#+LaTeX_CLASS_OPTIONS" in > > org-export-latex-set-initial-vars fails and it looks to me like a rather > > subtle problem: the temp file buffer looks empty. Whether that's the > > fault of the with-temp-file-buffer macro or something else, I'm not > > sure. > > > > Still not sure what is going on, but this modified org-interaction.el > file (it loads the necessary org-XXX.el files explicitly - be sure to > change the load-path appropriately) seems to work for me. I have not tried > to load org-XXX.elc files to see whether that works or not. > > Nick > > --------------------------------------------------------------------------- > (add-to-list 'load-path "/home/nick/src/emacs/org/org-mode/lisp") > ... I think that's the problem: picking up org from the *right* place works. Picking it up from whatever is built-in with your emacs does not. So just fix the load-path before you (require 'org) and all shall be well (famous last words...) Nick ------- End of Forwarded Message