emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Generate BEGIN_EXAMPLE block dynamically during export


From: Kaushal Modi
Subject: [O] Generate BEGIN_EXAMPLE block dynamically during export
Date: Tue, 16 Feb 2016 14:10:06 -0500

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]