* [O] (no)export of special blocks
@ 2020-05-07 19:19 Ken Mankoff
0 siblings, 0 replies; only message in thread
From: Ken Mankoff @ 2020-05-07 19:19 UTC (permalink / raw)
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:
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" "")
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
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-07 19:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 19:19 [O] (no)export of special blocks Ken Mankoff
Code repositories for project(s) associated with this public inbox
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).