From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Unneberg Subject: behaviour of org-export--get-subtree-options vs inbuffer-options Date: Wed, 05 Nov 2014 11:45:16 +0100 Message-ID: <877fzaj58j.fsf@gmail.com> Reply-To: Per Unneberg Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xly5l-0004IS-K5 for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 05:45:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xly5c-0003OH-Cx for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 05:45:33 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:52621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xly5c-0003O0-28 for emacs-orgmode@gnu.org; Wed, 05 Nov 2014 05:45:24 -0500 Received: by mail-la0-f45.google.com with SMTP id pn19so418066lab.18 for ; Wed, 05 Nov 2014 02:45:22 -0800 (PST) Received: from ubuntu-VirtualBox (130-229-48-229.scilifelab.ki.se. [130.229.48.229]) by mx.google.com with ESMTPSA id jj7sm1185518lbc.5.2014.11.05.02.45.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Nov 2014 02:45:21 -0800 (PST) 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 Hi list, on exporting subtrees to latex, I've noticed that inserting several EXPORT_LATEX_HEADER_EXTRA does not do what I naively had expected; that each entry be inserted in the header, separated by a newline, along with document properties (#+LATEX_HEADER et al). Looking closer at org-export--get-subtree-options and comparing to org-export--get-inbuffer-options suggests that the former doesn't take into account multiple EXPORT_LATEX_HEADER* statements? Here is a MWE to show what I mean. Exporting the following document with C-c C-e l L inserts all lines in the preamble #+LATEX_HEADER: %%latex_header_1 #+LATEX_HEADER: %%latex_header_2 #+LATEX_HEADER_EXTRA: %%latex_header_extra_1 #+LATEX_HEADER_EXTRA: %%latex_header_extra_2 * Latex test :PROPERTIES: :EXPORT_LATEX_HEADER_EXTRA: %%subtree-latex-header-extra-1 :EXPORT_LATEX_HEADER_EXTRA: %%subtree-latex-header-extra-2 :EXPORT_LATEX_HEADER: %%subtree-latex-header-1 :EXPORT_LATEX_HEADER: %%subtree-latex-header-2 :END: However, running C-c C-e C-s l L on the subtree removes the %%latex_header_* and inserts only the first subtree-latex statements (extra-1, header-1). Is this the intended behaviour? Cheers, Per