From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel, gnuplot, post processing Date: Fri, 11 May 2012 16:43:51 -0400 Message-ID: <87vck2wirc.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSyZ7-0007ZQ-Ht for emacs-orgmode@gnu.org; Fri, 11 May 2012 18:44:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSyZ5-0004fe-Pv for emacs-orgmode@gnu.org; Fri, 11 May 2012 18:44:01 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:41461) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SSyZ5-0004fY-I6 for emacs-orgmode@gnu.org; Fri, 11 May 2012 18:43:59 -0400 In-Reply-To: (skip's message of "Fri, 11 May 2012 08:57:37 -0700") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: skip Cc: emacs-orgmode@gnu.org skip writes: > How can I perform post processing on eps files produced by gnuplot > source blocks? I want to take out the extra white space margins in the > eps file by running eps2eps utility on the eps file produced by > gnuplot. > I believe that if given a :file header argument the gnuplot block will return the path to the altered file as it's return result. You could use a :var header argument to feed this path into a shell script code block which could call eps2eps on the resulting file. With this setup, every time the sh code block is evaluated it will call the gnuplot code block before it is run. See the relevant manual chapter for more information. http://orgmode.org/manual/Working-With-Source-Code.html Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte/