From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Per Unneberg <punneberg@gmail.com>
Cc: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: behaviour of org-export--get-subtree-options vs inbuffer-options
Date: Wed, 05 Nov 2014 14:24:26 +0100 [thread overview]
Message-ID: <87oasl93w5.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <877fzaj58j.fsf@gmail.com> (Per Unneberg's message of "Wed, 05 Nov 2014 11:45:16 +0100")
Hello,
Per Unneberg <punneberg@gmail.com> writes:
> 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?
Yes, you cannot have duplicate property names in the same property
drawer. OTOH you can append values to a property with :NAME+: syntax
(e.g. :EXPORT_LATEX_HEADER+:). You can also try to make everything fit
in a single line.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-11-05 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 10:45 behaviour of org-export--get-subtree-options vs inbuffer-options Per Unneberg
2014-11-05 13:24 ` Nicolas Goaziou [this message]
2014-11-06 8:58 ` Per Unneberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oasl93w5.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=punneberg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).