From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: noninteractive use of org-export Date: Wed, 16 Apr 2014 17:06:10 +0200 Message-ID: <87vbu9iaal.fsf@gmail.com> References: <87y4z5xsxw.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaROV-0000rq-P1 for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 11:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaROQ-0003qr-4Y for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 11:04:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:36660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaROP-0003qg-UL for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 11:04:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WaROO-0002Xy-DP for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 17:04:52 +0200 Received: from g231235008.adsl.alicedsl.de ([92.231.235.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 17:04:52 +0200 Received: from tjolitz by g231235008.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Apr 2014 17:04:52 +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: emacs-orgmode@gnu.org 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. This is untested! But maybe ... #+begin_src emacs-lisp (defvar my-beamer-files '("/path/to/file1" "/path/to/file2")) (defun my-beamer-exp-fun () (interactive) (when (consp my-beamer-files) (mapc (lambda (--file) (with-current-buffer (find-file --file) (org-mode) (org-beamer-export-to-pdf) (kill-buffer))) my-beamer-files))) #+end_src #+results: : my-beamer-exp-fun -- cheers, Thorsten