From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: org-export-async-init-file Date: Sun, 29 Sep 2013 08:02:32 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQLKi-0000H1-L3 for emacs-orgmode@gnu.org; Sun, 29 Sep 2013 14:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQLKb-0000Rm-Na for emacs-orgmode@gnu.org; Sun, 29 Sep 2013 14:03:04 -0400 Received: from oproxy1-pub.mail.unifiedlayer.com ([66.147.249.253]:35335) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VQLKb-0000Rb-GY for emacs-orgmode@gnu.org; Sun, 29 Sep 2013 14:02:57 -0400 Received: from [98.155.255.145] (port=51657 helo=poto.local) by box472.bluehost.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1VQLKE-00035e-BV for emacs-orgmode@gnu.org; Sun, 29 Sep 2013 12:02:34 -0600 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: Org-mode Aloha all, I've been following up on John Kitchin's recipe for creating a pdf file compendium that can be used as the supplementary material for a journal article. The journal I'm targeting provides a list of LaTeX packages that must be used exactly, without omissions or additions. John's recipe uses the LaTeX package attachfile, which is not on the list of packages that can be used in preparing the journal article. It is OK to use attachfile to prepare the pdf file distributed as supplementary material. I'm trying to set up the Org-mode file to use asynchronous export, both for the paper and for the supplementary material. I want to use one init file when I export the paper, and a different init file when I export the subtree that contains the supplementary material. My question: how to change the value of org-export-async-init-file when I export the subtree? In the spirit of an ECM, I offer the following EIM to illustrate what I'm trying to do. #+TITLE: Paper #+LATEX_CLASS: journal-article * Paper Section 1 * Paper Section 2 * Supplementary Material Describe supplementary material ... ** Supplementary Material Document :noexport: :PROPERTIES: :EXPORT_FILE_NAME: supplementary-material :EXPORT_TITLE: Supplementary Material for Paper :EXPORT_LATEX_CLASS: journal-article-supplement :END: * Editing setup :noexport: #+name: editing-setup #+begin_src emacs-lisp (require 'ox-latex) (setq org-export-in-background t) (setq org-export-async-debug t) (setq org-export-async-init-file (expand-file-name "init-journal-article.el")) ... #+end_src * Initialization File for Journal Article :noexport: #+name: export-setup-journal-article #+header: :tangle init-journal-article.el #+begin_src emacs-lisp (setq org-latex-packages-alist nil) (add-to-list 'org-latex-packages-alist '("" "setspace")) ... #+end_src * Initialization File for Journal Article Supplementary Material :noexport: #+name: export-setup-journal-article-supplement #+header: :tangle init-journal-article-supplement.el #+begin_src emacs-lisp (setq org-latex-packages-alist nil) (add-to-list 'org-latex-packages-alist '("" "setspace")) (add-to-list 'org-latex-packages-alist '("" "attachfile")) ... #+end_src All the best, Tom -- Thomas S. Dye http://www.tsdye.com