From: Matt Price <moptop99@gmail.com>
To: "Berry, Charles" <ccberry@health.ucsd.edu>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: setting export options in headline properties
Date: Wed, 21 Jul 2021 17:41:30 -0400 [thread overview]
Message-ID: <CAN_Dec-DYc2x7gNJZqrNffqKeOM2QzMkmpJKcH74wZmTK-VsGg@mail.gmail.com> (raw)
In-Reply-To: <4CBA9A0F-910D-45D2-A112-2402502F6AB6@health.ucsd.edu>
[-- Attachment #1: Type: text/plain, Size: 1754 bytes --]
arg. thx, Chuck.
On Wed, Jul 21, 2021 at 4:25 PM Berry, Charles <ccberry@health.ucsd.edu>
wrote:
> Matt,
>
> Check (info "(org) Export Settings")
>
> and especially, the para near bottom:
>
> When exporting sub-trees, special node properties can override the
> above keywords. These properties have an ‘EXPORT_’ prefix. For
> example, ‘DATE’ becomes, ‘EXPORT_DATE’ when used for a specific
> sub-tree. Except for ‘SETUPFILE’, all other keywords listed above have
> an ‘EXPORT_’ equivalent.
>
> HTH,
>
> Chuck
>
> > On Jul 21, 2021, at 11:52 AM, Matt Price <moptop99@gmail.com> wrote:
> >
> > Hi,
> >
> > I'm not sure if I'm reading the documentation properly, but my
> understnading is that I ought to be able to set export options as subtree
> properties, and that if I do so, they should be picked up by export engines
> when exporting subtrees. However, that doesn't see to be happening for me,
> and from what I can tell, `org-export-get-environment` is not overriding
> global values when passed the `subtreep` parameter.
> >
> > I tried the following with emacs -Q , which seems to confirm my issue.
> Is this the expected behaviour, and if so, is there some other way for me
> to set subtree-level export options?
> >
> > --------------
> > ** subtree
> > :PROPERTIES:
> > :SUBTITLE: testing
> > :REVEAL_TITLE_SLIDE: nil
> > :HTML_CONTAINER: section
> > :END:
> >
> >
> > #+begin_src emacs-lisp
> > (let ((info (org-export-get-environment 'html t)))
> > (string-join `(,(plist-get info :subtitle) ,(plist-get info
> :html-container)) "\n")
> > )
> > #+end_src
> >
> > #+RESULTS:
> > :
> > : div
> > --------------------------
> >
> > thanks as always!
>
>
[-- Attachment #2: Type: text/html, Size: 2315 bytes --]
prev parent reply other threads:[~2021-07-21 21:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 18:52 setting export options in headline properties Matt Price
2021-07-21 20:25 ` Berry, Charles via General discussions about Org-mode.
2021-07-21 21:41 ` Matt Price [this message]
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=CAN_Dec-DYc2x7gNJZqrNffqKeOM2QzMkmpJKcH74wZmTK-VsGg@mail.gmail.com \
--to=moptop99@gmail.com \
--cc=ccberry@health.ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/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).