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 17:20:31 -0500

I finally have this working!

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

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

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

#+CAPTION: =results.txt=
#+NAME: code__results
#+INCLUDE: "results.txt" :src text

I need to export to a separate file and also embed the results in the exported document. So above is what I came up with.

reply via email to

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