Hi all,

I'd like to have an EXAMPLE block in my org file whose value is set using something like an org macro at the time of export.

So, something like:

#+MACRO TAR_FILE some_file.tar.gz

#+BEGIN_EXAMPLE
> tar xvzf {{{TAR_FILE}}}
#+END_EXAMPLE

As the above is not possible, what would be a good way to generate the EXAMPLE block on the fly during export with the value of {{{TAR_FILE}}} replaced based on the macro definition?

--
Kaushal Modi