emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Generate BEGIN_EXAMPLE block dynamically during export


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

That works perfectly! Thank you!

Just to add that I had to have "#+HEADER: :exports none" as I did not want the elisp code to be visible in the exported documents.

#+PROPERTY: header-args:emacs-lisp :var tar-file="bar.tar.gz"

#+NAME: tar-eg
#+HEADER: :exports none
#+BEGIN_SRC emacs-lisp
(format "> tar xzvf %s" tar-file)
#+END_SRC

#+CALL: tar-eg() :wrap example :exports results

reply via email to

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