From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: noninteractive use of org-export Date: Thu, 17 Apr 2014 11:33:31 +0200 Message-ID: <87tx9sxpuc.fsf@free.fr> References: <87y4z5xsxw.fsf@free.fr> <877g6o8kvu.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaihU-0005XB-Aj for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 05:33:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaihQ-0006ZO-8I for emacs-orgmode@gnu.org; Thu, 17 Apr 2014 05:33:44 -0400 In-Reply-To: <877g6o8kvu.fsf@bzg.ath.cx> (Bastien's message of "Thu, 17 Apr 2014 09:39:49 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Hi Julien, > > Julien Cubizolles writes: > >> How can I use org-beamer-export-to-pdf for example for an org file that >> the current buffer isn't visiting? >> >> My setup is the following : I have two org files cours-beamer.org and >> cours-notes.org each containing different +LATEX_CLASS and >> +LATEX_CLASS_OPTIONS choices and the same +#INCLUDE "cours.org" >> file. I'd like to be able to run the export to beamer-pdf for both >> cours-beamer.org and cours-notes.org from cours.org, or even from a bash >> script but the documentation for org-beamer-export-to-pdf doesn't show >> how. > > You need to setup a publishing project to export several files at > once. Thanks that seems to be exactly what I need. However, I'm not sure I'm doing everything right: Here is what I've tried so far (setq org-publish-project-alist '(("cours" :base-directory "~/tmp/test_org" :publishing-directory "~/tmp/test_org" :publishing-function org-beamer-publish-to-pdf :include ("1er-principe-beamer.org" "1er-principe-notes.org")))) Something must be wrong with the :include syntax since every org file in the base-directory is exported when I run C-c C-e P x. Also, is it possible to specify export options like LATEX_CLASS_OPTIONS from org-publish-project-alist ? Julien.