all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* behaviour of org-export--get-subtree-options vs inbuffer-options
@ 2014-11-05 10:45 Per Unneberg
  2014-11-05 13:24 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Per Unneberg @ 2014-11-05 10:45 UTC (permalink / raw)
  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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-06  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 10:45 behaviour of org-export--get-subtree-options vs inbuffer-options Per Unneberg
2014-11-05 13:24 ` Nicolas Goaziou
2014-11-06  8:58   ` Per Unneberg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.