From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: External compilation Date: Thu, 19 Feb 2015 12:35:48 +0100 Message-ID: <87wq3e5e23.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOPOl-000637-O5 for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 06:36:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOPOi-0001cc-HK for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 06:36:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:50805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOPOi-0001cA-A9 for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 06:36:00 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YOPOf-0004UO-O3 for emacs-orgmode@gnu.org; Thu, 19 Feb 2015 12:35:57 +0100 Received: from 46.166.188.215 ([46.166.188.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2015 12:35:57 +0100 Received: from rasmus by 46.166.188.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2015 12:35:57 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I want to translate some documents to pdf. I'm currently doing it with something like this OX-FUN = emacs --batch --no-init-file --load conf.el $1 --funcall $2 --kill OX-LATEX = $(call OX-FUN, $1, org-latex-export-to-pdf) But this is very limiting (I am told) as it require me to maintain a Makefile. It's not as easy as latex. I can move the call to Emacs as file variable s.t. # Local Variables: # eval: (unless (or user-init-file (window-system)) (load-file "conf.el")) # End: And export by calling: emacs --batch --no-init-file --eval="(progn (setq enable-local-eval t) (require 'ox-latex))" $1 --funcall=org-latex-export-to-pdf But this is kind of annoying as it disturbs opening the file I tried to port my config to conf.org and let babel handle it, but conf.org also defines the document class so I never get to the babel evaluation stage. Has anybody come up with a better method? Ideally, what I would like would be to specify a per-file/project init file. Sort of like org-export-async-init-file, but as part of org-export-options-alist to get the "init.el-dependency" inside the Org-file. It would be read when Org exports async or via batch. —Rasmus -- This message is brought to you by the department of redundant departments