From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: babel work flow Date: Thu, 14 Jul 2011 09:34:12 +0200 Message-ID: <80oc0x9uyz.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Thomas, Thomas S. Dye wrote: > I want to use one of the dot utilities, tred, in a way that preserves my > ability to distribute the Org-mode file as reproducible research, i.e., > intermediate results should end up in the Org-mode file or be passed > along in a chain. > > Right now I have a python routine that reads a couple of Org-mode tables > and outputs a valid dot graph. I'm saving this to a file, dot-temp.gv, > and then running some shell commands, like this: > > #+begin_src sh > tred dot-temp.gv > test.gv > dot -o test.pdf -Tpdf test.gv > open test.pdf > #+end_src > > The graph is just what I want, but I can't see how to automate the > process in Org-mode. In particular, the tred step trips me up. Do I > have to make babel, tred-aware? Sorry if I misunderstand, but could you be more explicit (for me) on what the problem is? Why is it a problem for you to have that sh block inside your Org. It is executed automagically upon exporting, no? If yes, why is that not good enough? Best regards, Seb -- Sebastien Vauban