From: Ken Mankoff <mankoff@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: [O] (no)export of special blocks
Date: Thu, 07 May 2020 12:19:11 -0700 [thread overview]
Message-ID: <877dxnlfio.fsf@gmail.com> (raw)
Hello,
I'd like to be able to optionally export/not-export a specific paragraph within a section, based on a top-level property. Is this possible in Org? I know I can toggle export of code blocks, but what about text blocks?
More specifically, I'm writing a journal article and I would like to have figures in the text where I think they should be:
[[./fig/foo.png]]
#+CAPTION: foo
But the journal wants the figures at the end of the document.
I'd like to replicate the "[[./fig/foo.png]]", once inline and once at the end. I'd then like to be able to wrap this in a #+BEGIN_SOMETHING and toggle that with a property to export or not. E.g:
#+BEGIN_something :export (org-macro--get-property "results-y-or-n" "")
[[./fig/foo.png]]
#+CAPTION: foo
#+END_something
I recognize that if the figure is generated from a code block I can achieve my desired behavior. The code can have ":exports results" set to ":exports (org-macro--get-property "results-y-or-n" "")", and elsewhere
:PROPERTIES:
:results-y-or-n: nil
:END:
But there are a few problems with this:
1) org-macro--get-property works for header level properties in :PROPERTIES: drawers, but not top level #+PROPERTY: items.
2) Not all my figures are generated from code blocks
Thanks,
-k.
reply other threads:[~2020-05-07 19:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dxnlfio.fsf@gmail.com \
--to=mankoff@gmail.com \
--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 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.