[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-export-async-init-file

From: Thomas S. Dye
Subject: [O] org-export-async-init-file
Date: Sun, 29 Sep 2013 08:02:32 -1000

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

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:
   :EXPORT_FILE_NAME: supplementary-material
   :EXPORT_TITLE: Supplementary Material for Paper
   :EXPORT_LATEX_CLASS: journal-article-supplement

* 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"))

* 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"))

* 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"))

All the best,
Thomas S. Dye

reply via email to

[Prev in Thread] Current Thread [Next in Thread]